On Dec 8, 2006, at 1:11 AM, Aparajita Fishman wrote:
I just recently started using the A4D file upload routines in
earnest. Life is good except that I keep gradually collecting
temporary files in the Active4D Uploads folder. It _seems_ that
the files are getting moved to their final destination (That is, I
think it always works for me in development except when I get an
error.)
As I read the docs, the files are supposed to be deleted no
matter if there is an error or not.
What could be causing these files to collect?
What is your configuration?
Regards,
Aparajita
www.aparajitaworld.com
Config is 2004.4, A4D 4, 10.4
I have more information about how this happens, I believe, though I
don't have enough specific knowledge to be sure.
I traced the network traffic and this is what I think I'm seeing:
I looks like a Safari issue:
Given a web form with file input field and a couple other text imputs.
User selects a file, types some text in field and hits Enter/Return
key with cursor still in text field.
Form is submitted.
It then appears to the user that no response is returned from the
server. Safari will wait forever.
In the same scenario, if the user clicks the Submit button instead
of hitting return, it works as expected, no file is left in the
uploads folder.
After comparing the traffic logs from the two scenarios what I'm
seeing is that in the first case, after the file post data ends,
server sends several ACK's back to client, but Safari does not respond.
My guess is that 4D decides that the client is gone, closes the
connection and aborts the web process. Of course, this is pure
speculation on my part. Looking at the process list in runtime
explorer, I see the process start as the upload begins, then it ends
in just about the same amount of time as a successful upload. So it
doesn't seem to wait too long to decide to close the connection if
that is what's happening.
BTW the file I was testing with was 1MB and the server is on the
same LAN with the client so the upload goes very quickly.
IE-Win and all Mozillas I tested don't exhibit this behavior.
What I want to do and haven't figured out how, is to stop the form
from being submitted when the user hits enter, and make them click
the button. My knowledge of javascript still has a lot of holes in it.
Kind Regards,
*********************************************************************
Bill Leddy
[EMAIL PROTECTED]
William Leddy Business Consulting
Custom Database Solutions
3145 17th Street
Sacramento, CA 95818 Phone: (916) 444-2903
"On the desktop and on the web"
*********************************************************************
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/