PDA

View Full Version : ASPUpload uploaded picture cache


jherr1971
05-16-2004, 09:47 AM
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!

bruce
05-16-2004, 11:31 AM
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.

[b]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">

jherr1971
05-18-2004, 09:19 AM
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.

bruce
05-18-2004, 10:38 AM
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.

[b]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">