|
Rank: Member Groups: Member
Joined: 3/31/2010 Posts: 11
|
Is there a reason we have to switch trace off in the web.config to use the ajax uploader? We use a staging/test site for all testing and this has trace switched on so that we can view debug info etc however when using the ajax uploader I get a message saying that we have to disable trace in the web.config file.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
ASP.NET tracing tries to load the whole request package into memory before handing over any information downstream. So once tracing is enabled, ASP.NET will eat the whole file before the uploader gets a single byte, which will make the uploader very much useless.
Because ASP.NET tracing loads the whole request package into memory, it can cause problem for you if your user upload large files --- regardless whether you use our uploader or not. You can run into memory issues thus cause your Web application to be frequently recycled even if you just use standard HTTP file input element.
While ASP.NET does allow you to turn on/off trace on a page level, the trace module operates on Http Module level and it got hooked in regardless as long as you have trace turned on in web.config. Most people do not run trace on production server so this shouldn’t be an issue. However if this is a blocking issue for you, we can look into it and see if there is a solution that would allow you to at least silent this message (we can not guarantee a solution exists before we have looked into it though). Please let us know.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/31/2010 Posts: 11
|
It would be useful if you could do something. You are correct we do not use tracing on a production site however it is extremely useful on our test site.
On other thing that I seem to be doing wrong, the way I read the help is I set a finalfilelocation the upload component should automatically move the files there once the upload is finished. This does not seem to be happening for me, the files just stay in the temporary location. Is there anything I need to do to finalise the upload?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
OK. We will look into the trace issue and see what we can do.
As to the FinalFileLocation that should be all you need to do. However you maybe confused about when the files are moved over. The files are moved over when the page submits, not when the upload finishes. User can upload a file A, then upload another file B, then delete A, then submit the page. During the process you will see temp file for both A and B, but only B will be moved over when user submits the page. The submit can be triggered separately such as by another button, or by the uploader automatically as soon as upload finishes if you set the uploader's AutoPostBack to true.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/31/2010 Posts: 11
|
Ahhh. ok great. I should have twiged about the page submmit.
BTW, you guy's have excelent support. Keep up the great work.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Glad to hear that. We view support quality and product quality are equally important. Great support not only helps our users to save time and effort and use our product to its maximized potential, but also allows us to really hear and understand our customers needs which help us to constantly improve the product. So it's something not only we love to do, but also works well for us.
Thanks!
|
|