Upload not finishing on slower server (wodHttpDLX)
Hi there!
I am having an issue with using AddFile, then Post. It seems to end too soon. The exact same code works on a faster server (about 2-3X faster), then fails (without error) on another.
--Code Snippet------------
oW.Request.FormUpload.AddFile( file_1 , cPDFUpload)
thisformset.WriteTrace( Starting upload of pdf file , 1) &&Writes to Debug window
oW.Blocking = .t.
oW.Post(cAction)
--End Code Snippet------------
Any ideas?
Great product - thanks!
Re: Upload not finishing on slower server
Majuba,
If the error didn't occur, I can't say that's fault from wodHttpDLX. How can you tell if the upload was completed, or not?
Can you add some debugging code to Progress Event (should fire while uploading/downloading), and check if whole file got uploaded (using Position/Total arguments? Also, was Done Event triggered?
Perhaps we did upload everything, but server didn't acept it for some reason?
Regards,
Damba
Re: Upload not finishing on slower server
Can you add some debugging code to Progress Event (should fire while uploading/downloading), and check if whole file got uploaded (using Position/Total arguments? Also, was Done Event triggered?
Perhaps we did upload everything, but server didn't acept it for some reason?
Great advice! - Would you happen to have a bit of code for the use of the Progress event or method? I'll try working something up.
Thanks again!
Re: Upload not finishing on slower server
Majuba,
In VB you could do something like this:
Debug.Print Position / Total
I'm not sure how that would look in an environment you are working in, but it shouldn't be much different. Also, Position and Total are arguments provided by Progress Event.
This would print the progress of uploading or downloading from server.
Hope this helps.
Regards,
Damba