File upload fails for large binary files
Brought to you by:
vittal
File upload is dying badly on +1Mb binary files (and reportedly on some smaller ones). Either mail gets sent, but no attachment's there, or no mail gets sent.
I reckon its down to the pure perl base64 encoding routine - I'm looking at making that a fallback option and doing an initial shot of using native MIME::Base64
I've now added a patch that possibly resolves this.
The patch evals to see if MIME::Base64 is available, and failing that, I've
altered the encoding loop and removed a regexp that seemed to be
causing grief.
Awaiting some feedback from people who are having upload problems
before marking closed.
another source of problems may be the use of locale dependent newlines at the base64 encoding linebreak - 1.0.7 uses \cM\n - but i think it probably should be \015\012
a russian user is reporting corruption of attachments.
This is really freaky - some systems are fine, some barf up - even when using the same soupermail code.
So, is it:
*) browser? doubt it, uploading the same file to different machines with the same browser gives different results
*) CGI.pm? maybe
*) MIME::Base64 module?
*) OS/installed libs?
ideas anybody? this is a real pain to track down, because it works for me. anybody with an affected box and who's willing to give me a log on so i can do some testing will be doing me a BIG favour.
v
1.0.7.1 adds some stuff that should prevent this, but i aint sure, so here's hoping.
Hi Vittal,
I have encountered this problem -- mail me at badens@websiteservices.ltd.uk and I will do whatever I can to assist in ironing this one out.
atb,
Baden
Logged In: NO
heloo
Logged In: NO
Is this problem resolved. I am still encountering this
problem when I post files over 2.4 meg in total size.
This problem may cost me an account so it is quite
important that I fix it.
HELP!!!