PDA

View Full Version : Upload Directory


ryancoc22
04-02-2007, 08:36 AM
I am trying to cahnge the location of my pictures that are uploaded from the database to the upload folder. I checked the permissions on the folder and they seem to be ok. Also when i FTP to \upload they are getting uploaded correctly. When i pull my page up though it will not get the picture. Any help would be greatly appreciated. thanks
Ryan

I guess im wondering if i need to change any permissions or anything in my discountasp.net account.

Post Edited (ryancoc22) : 4/3/2007 1:36:46 AM GMT

vvsharma
04-02-2007, 09:52 AM
Are you able to see the image url/location in the image properties.Does it look right?

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

joelnet
04-02-2007, 09:53 AM
Please elaborate on will not pull up the picture. What error message are you getting? Is there a URL of an example of the problem we can look at?



Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET

ryancoc22
04-03-2007, 12:36 AM
http://www.4leasebyowner.com/ShowAd.aspx?id=31

It has the outline of the picture but no image. It is however being added to my upload folder . I can tell by ftp

vvsharma
04-03-2007, 01:14 AM
Check you PhotoDisplay.ashx which is responsible for displaying the images.

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

ryancoc22
04-03-2007, 02:07 AM
What would I be looking for? On PhotoDisplay.ashx. is their an upload path

vvsharma
04-03-2007, 08:58 AM
PhotoDisplay.ashx calls 'PhotosDB.GetFilePath(photoId, true, size)' [found within Photo.cs within App_code>BLL] which is responsible for getting the image file path .

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

ryancoc22
04-05-2007, 06:09 AM
I thought I should be able to change the location in site settings to the upload directory. It seems it could be something else to me. Its pushing the photos to \upload but not pulling htem. Im not sure how would code the filepath in there. Do you know of anyone else who has done this or could you give me a hint. Much appreciated. have a good weekend
Ryan