DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32046>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32046

It is not expected for boundary to have quoted-string value

           Summary: It is not expected for boundary to have quoted-string
                    value
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: File Upload
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I've encountered bug while using commons-FileUpload. I'm trying to upload some 
files onto server using POST with 'multipart/form-data' encoding. When I use 
MSIE 6.0 everything works very good, but in my browser none of files stored. 
File 'send.jsp' (it is used to store files on server) recieves NO PARAMETERS as 
I use my browser.
Additional investigation showed that my browser is using quoted-string as 
boundary delimiter:

  Content-Type: multipart/form-data; boundary="boundary-=-
hfdDhaidRTHTYI4N_ljVRVipnPMx"


And then it separate parameters:

  --boundary_=_hfdDhaidRTHTYI4NPljVRVipnPMx
  Content-Disposition: form-data; name="server"

  my.server.com
  --boundary_=_hfdDhaidRTHTYI4NPljVRVipnPMx
  Content-Disposition: form-data; name="filename1"

  snd1.wav
  --boundary_=_hfdDhaidRTHTYI4NPljVRVipnPMx
  Content-Type: Application/Octet-stream
  Content-Transfer-Encoding: binary
  Content-Disposition: form-data; name="file1"; filename="C:/Documents and 
Settings/Default User/Local Settings/Temporary Internet 
Files/Content.IE5/W0URU3HB/CA0RKW31.rec"

  <binary-data>


As stated in RFC1521 on page 9 (http://www.ietf.org/rfc/rfc1521.txt):
  content  :=   "Content-Type"  ":"  type  "/"  subtype  *(";" parameter)
  parameter := attribute "=" value
  value := token / quoted-string


And it seems from your code, nothing was provided to determine and process such 
case.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to