ASPUpload uploaded picture cache

Discussion in 'Classic ASP' started by jherr1971, May 16, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. This problem puzzles me:

    I'm using aspupload to let my members manage their picture. When they upload their picture it gets renamed to their member ID.

    So far everything works great.

    Now members can go and delete their pictures too. When they do so the picture really gets deleted from the server.

    Now the problem starts.

    Even though the picture is not available anymore, it is still showing in a browser. When I type the picture file name in my browser it actually shows even though it is not there (I'm expecting a red X).

    I've emptied my cache and opened a new browser too. I even opened another browser (Netscape instead of Explorer) but it showed up again.

    Now if a member upload a different picture the file gets renamed and posted onto its location. When I FTP download that renamed file it is the correct one. But when I call it from a browser it still shows the very first picture the user uploaded.

    It doesn't matter how many times the picture get changed. The first one always shows up.

    Anybody knows what is going on here?

    Thanks!
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    how are you deleting the file?

    if you are using aspupload to delete the file, it will not work. i believed that feature is disabled for security reason as suggested by aspupload.

    Try use Filesystem object to delete.

    quote:Originally posted by jherr1971

    This problem puzzles me:

    I'm using aspupload to let my members manage their picture. When they upload their picture it gets renamed to their member ID.

    So far everything works great.

    Now members can go and delete their pictures too. When they do so the picture really gets deleted from the server.

    Now the problem starts.

    Even though the picture is not available anymore, it is still showing in a browser. When I type the picture file name in my browser it actually shows even though it is not there (I'm expecting a red X).

    I've emptied my cache and opened a new browser too. I even opened another browser (Netscape instead of Explorer) but it showed up again.

    Now if a member upload a different picture the file gets renamed and posted onto its location. When I FTP download that renamed file it is the correct one. But when I call it from a browser it still shows the very first picture the user uploaded.

    It doesn't matter how many times the picture get changed. The first one always shows up.

    Anybody knows what is going on here?

    Thanks!
    </blockquote id="quote"></font id="quote">
     
  3. Thanks Bruce.

    I am actually using Filesystem. It is obvious for me that it is a hosting cache.

    Because I upload the picture with ASPUpload and then delete it with my FTP. And when I after call the picture through my browser is it still there even though I deleted it with FTP and I emptied my browser's cache.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    i don't think our server caches graphic files

    it could be your ISP is caching the file, many ISP do that now to conserve bandwidth.

    quote:Originally posted by jherr1971

    Thanks Bruce.

    I am actually using Filesystem. It is obvious for me that it is a hosting cache.

    Because I upload the picture with ASPUpload and then delete it with my FTP. And when I after call the picture through my browser is it still there even though I deleted it with FTP and I emptied my browser's cache.


    </blockquote id="quote"></font id="quote">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page