Welcome Guest Search | Active Topics | Sign In | Register

Ajax Uploader ClearPostedFiles not work Options
Lan
Posted: Friday, August 1, 2008 3:28:30 AM
Rank: Newbie
Groups: Member

Joined: 5/19/2008
Posts: 3
Hi,
Your control upload is very easy to use, I love it, but when I finish upload a file to TempLocation and copy it to another location, then call ClearPostedFiles(), this temp file is still there. And I found that all temp files haven't been deleted even if I waited 24h, how can I delete them? now I must use File.Delete ...

Thanks,
Lan
eo_support
Posted: Friday, August 1, 2008 6:41:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

Please download the latest version, then go to the documentation (the local .chm version. the online version is not updated yet), open "EO.Web AJAXUploader" -> "File Upload Explained" -> Stage 4: Clean Up. That section explained this in great detail. You do not need to use File.Delete to delete the files.

Thanks
Lan
Posted: Friday, August 1, 2008 7:50:19 AM
Rank: Newbie
Groups: Member

Joined: 5/19/2008
Posts: 3
Hi,

thanks for your quickly reply, I think I'm at case 2:
"The uploader does not delete the files immediately. So if the application has never run long enough to satisfy the time delay (which is often the case on a development machine), the files may not get deleted; "
so how long is enough to satisfy the time delay? how could I get/decrease this time delay?

If I usually open the temp folder and click refesh(F5) then that may be the cause?

Cheers,
Lan
eo_support
Posted: Friday, August 1, 2008 8:03:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

The point is that you should not care because while all these can occur on your development machine, it should never occur on your production machine. Your web site would not be functional at all if it crashes/stops as often as on your development machine. So this is never a real issue.

Thanks
Lan
Posted: Tuesday, August 5, 2008 9:24:20 AM
Rank: Newbie
Groups: Member

Joined: 5/19/2008
Posts: 3
ClearPostedFiles still does not work, but today all temp files are deleted automatically :D so I don't need ClearPostedFiles anymore.

Thanks,
Lan
eo_support
Posted: Tuesday, August 5, 2008 9:30:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Lan wrote:
all temp files are deleted automatically :D so I don't need ClearPostedFiles anymore.
Lan


Great to hear that. We told you. :D

Lan wrote:
ClearPostedFiles still does not work.


ClearPostedFiles only tries to clear the files. If the files are for whatever reason can not be deleted immediately, it returns without throwing any kind of error. It's a function that expediates file cleanup. It's not a function to guarantee a clean up right away since that is totally not necessary.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.