[Tramline-dev] strange bug: posting forms with ONLY file upload field
Bram - Smartelectronix
bram at smartelectronix.com
Wed Mar 14 15:28:09 CET 2007
hello everyone,
yesterday night i pent about 2 hours looking for a bug with tramline and
this is the strange thing that happens:
apache 2.0.52
mod_python 2.7.11
( django trunk, but i'm sure that's irrelevant )
when an upload form ONLY contains a file field [1] tramline is losing a
few bytes at the end of all files (and really small files are reduced to
size 0).
However, when apache is restarted, the last few bytes magically appear
at the end of the files ( even though they already have been moved to
the repository directory) and the md5 is correct.
When adding a second field (for example a hidden field) [2] in the form
everything works just fine.
perhaps an interesting bug?
- bram
[1]
<form action="." method="post" enctype="multipart/form-data">
<input name="image" id="id_image" type="file" />
<input value="Upload" type="submit" />
</form>
[2]
<form action="." method="post" enctype="multipart/form-data">
<input name="image" id="id_image" type="file" />
<input name="hidden" id="id_hidden" type="hidden" />
<input value="Upload" type="submit" />
</form>
More information about the Tramline-dev
mailing list