You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by evan <sp...@eustace.net> on 2005/11/17 19:50:00 UTC

[FileUpload] bug in flash 8 upload component

FYI...

This is not a commons-fileupload problem, but the new Flash 8 player 
supports uploads, and chokes when using commons-fileupload on the server.

The problem - I believe - is with badly formatted MIME data provided by 
the flash upload component.

It always adds the following part as the last part in the message...


> 0046B0  0A 7D 0A 0D 0A 2D 2D 2D  2D 2D 2D 2D 2D 2D 2D 2D  .}...-----------
> 0046C0  2D 61 65 30 67 4C 36 49  6A 35 67 4C 36 61 65 30  -ae0gL6Ij5gL6ae0
> 0046D0  45 66 31 61 65 30 49 6A  35 4B 4D 37 67 4C 36 0D  Ef1ae0Ij5KM7gL6.
> 0046E0  0A 43 6F 6E 74 65 6E 74  2D 44 69 73 70 6F 73 69  .Content-Disposi
> 0046F0  74 69 6F 6E 3A 20 66 6F  72 6D 2D 64 61 74 61 3B  tion: form-data;
> 004700  20 6E 61 6D 65 3D 22 55  70 6C 6F 61 64 22 0D 0A   name="Upload"..
> 004710  53 75 62 6D 69 74 20 51  75 65 72 79 0D 0A 2D 2D  Submit Query..--
> 004720  2D 2D 2D 2D 2D 2D 2D 2D  2D 2D 61 65 30 67 4C 36  ----------ae0gL6
> 004730  49 6A 35 67 4C 36 61 65  30 45 66 31 61 65 30 49  Ij5gL6ae0Ef1ae0I
> 004740  6A 35 4B 4D 37 67 4C 36                           j5KM7gL6


This is missing CRLFCRLF after the part (only has CRLF), and '--' after 
the final boundary.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org