leo
unread,Nov 12, 2009, 10:45:25 PM11/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
I run into some weirdness when submitting a form that contains a file
upload field. I am using the auto-generated form in the appadmin page
that inserts new records into a database table with an upload field.
File sizes over a certain limit (not very large, only around 100kb)
make the upload last disproportionally longer after clicking the
'submit' button (i.e., 99kb uploads almost instantaneously; 100kb
lasts for several seconds), and then the browser comes back with a
completely blank page (no ticket, no error message, nothing), and no
database insert has actually taken place.
This strangeness occurs only when connecting using https (server
started with the -c server.crt -k server.key arguments). With an
ordinary http connection everything works fine with any upload file
size.
I have been able to nail it down to an exact file size that still
uploads correctly; add one byte to it, and it hangs. It seems to have
something to do with the total POST size being sent to the server,
because when I add one more character to one of the other fields in
the form, I have to reduce the file size by one byte to make it work.
Has anyone run into a phenomenon like this in the past?
Best wishes,
Leo