|
Rank: Newbie Groups: Member
Joined: 9/10/2008 Posts: 3
|
Hi, My question is about your AJAXUploader control. I need to upload file onto server without user interaction with Input Textbox and Browse button. I only have myFile on client side and I need to upload it. Does your control allow this scenario? Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi, No web browser will allow you to automatically grab a file from a client's machine without having the user to browse for it first --- otherwise you would be able to build a site that can grab whatever user file you wish as soon as user visits your site. Thus user must be aware that they are uploading a file --- they must click the browse button to browse for the file first. The browse button can be styled to whatever way you wanted though. You do not have to have a textbox either. This sample demonstrating using a toolbar button to trigger the upload: http://www.essentialobjects.com/Demo/Default.aspx?path=AJAXUploader\uploader_toolbarThanks
|
|
Rank: Newbie Groups: Member
Joined: 9/10/2008 Posts: 3
|
Hi, thanks for explanation, I supposed this. Nevertheless I have one question more about AjaxUploader.
I used method ClearPostedFiles() after the upload. This method clears files only from ViewState, not from server Temp directory (true?). I have written myown method for deleting temporary files. It works good. But I vave found your txt file "no_need_to_delete_temp_file.txt" where is stated "AJAXUploader automatically clears temp files that it created in this directory. The files are not deleted immediately but will eventually be deleted." My question: When are these files deleted by your control?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi, You should not delete the temp files. That's exactly why we put a "no_need_to_delete_temp_file.txt" there. The files are deleted after the uploader detects the file has not been "touched" for a certain period. However due to sever load and many other factors (for example, you app restarted before the time is reached ---- this is often the case on a development server), you may see those files not get deleted for a while. That is normal. They will eventually be deleted. You can find more information about this on this page: http://www.essentialobjects.com/ViewDoc.aspx?t=AJAXUploader%2fAJAXUploader_behavior.htmlIt would be in the "Clean up" section. Thanks
|
|
Rank: Newbie Groups: Member
Joined: 9/10/2008 Posts: 3
|
Thanks, Now is it clear for me.
|
|