I have a site that sells houses etc, each house has a number of images and the name (only) of the file is held in a database.
I have set the upload path, from a previous app, to be in the folder /img/ and then the property ref number i.e /img/2322/image1.jpg
The problem i have is setting the folder path in the App (server.mappath) as i can't insert a dynamic address from a recordset i.e Server.MapPath(img/<%=rsImages(PropID)%>/)
I've searched the net for an anwser to no avail - can anyone help? Is it worth resetting the database record to show the path and not only the filename.. any solutions welcome thanks in advance |
|
|