Upload Directory

Discussion in 'ASP.NET Starter Kits' started by ryancoc22, Apr 2, 2007.

  1. 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
     
  2. Are you able to see the image url/location in the image properties.Does it look right?

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. 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
     
  4. Check you PhotoDisplay.ashx which is responsible for displaying the images.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. What would I be looking for? On PhotoDisplay.ashx. is their an upload path
     
  6. 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
     
  7. 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
     

Share This Page