User.Request.Filename - issue setting true Temp fi - WeOnlyDo Discussion board

User.Request.Filename - issue setting true Temp fi (General questions)

by D Waters, Tuesday, December 05, 2006, 02:23 (6563 days ago)

I am having problems when setting the User.Request.Filename property, and having WodWebServer properly use the file I specify. It is most apparent when I attempt to upload a large file (say 20-50 mb). When the upload completes, my application freezes for several minutes. It appears that during that time, wodWebServer is copying the file from whatever Temp file it created, to the file I specified. This is the same process that occurs if I simply called the Request.Save method.

However, according to the documentation, I should be able to set Request.Filename, and wodWeb will use THAT file for the Temp. If this were tru, when the file upload was completed, the application would not freeze while transferring the data from the 'Temp' file to the file I wanted it saved as, because that is where the data would already be.

Again, it appears that wodWeb is not using the filename I have specified in Request.Filename to store the data as it is initially uploading.


Can this be corrected? Am I misunderstanding the purpose of Request.Filename?

Re: User.Request.Filename - issue setting true Tem

by woddrazen, Tuesday, December 05, 2006, 09:32 (6563 days ago) @ D Waters

Hi,


I have just tried to duplicate you problem but didn't have luck. Where did you put Request Filename Property?
If you put it as I did in RequestHeaders Event what happened?

Here is example:
-------------------------------
Private Sub Http1_RequestHeaders(ByVal User As WODWEBSERVERCOMLib.IWebUser)
User.Request.filename = c: est.txt
End Sub
-------------------------------

Maybe you can prepare us simple sample and zip and send that sample to techsupport@weonlydo.com
Sample will help us to duplcate your problem and try to resolve it.

Hope this helps.


Regards,
Drazen

Re: User.Request.Filename - issue setting true Tem

by D Waters, Wednesday, December 06, 2006, 01:01 (6562 days ago) @ woddrazen

Sample will be coming in via e-mail.

I don't think you are testing with a large enough file. I am setting the file in RequestHeaders Method. HOwever, with a small file, it looks as though it is using the file you specify for a temp file.

However, with a larger file, you can see the delay more clearly. Upload a 30 mb file (assuming a slow link between the server and client) and you will see. The Web Page reports the upload is completed, but the webServer and application freeze, the Temp file specified does not yet exists, and the hard drive crunches while it is now creating the temp file that I specified. App returns to normal, and my temp file is now there. It looks like wodWeb is still using it's own temp file, and simply copying into my temp file, just like the .Save method would do.

I need it to use MY file as the original temp file to put all of the Response Data.

Sample is on its way. Thanks!

Re: User.Request.Filename - issue setting true Tem

by wodSupport, Wednesday, December 06, 2006, 23:29 (6561 days ago) @ D Waters

Dave,

I have duplicated yuor problem - but this isn't a bug actually. Component has to seek through the file, line by line, searching for mulitple parts (since it's form-based upload). Obviously, when doing this with 90MB file in the same thread as all users, you see a freeze. You can not avoid it.

You can, of course, use mutliple threads, but NOT in VB6.. Perhaps setting Threads = SafeThreads would help..
Kreso