This forum is a community forum meant for users of the plugin to collaborate and help solve issues with implementation, etc. Unfortunately, as the creator of the plugin, I do not have much time to attend to every request here as this is only a side project and I must work a full-time job to provide for my family. This is how I keep the Flash version free and the HTML5 version low cost.
UploadiFive 1.1.1 has been released which includes a small fix for added support on touch devices including iOS 6 devices.
Apache Commons wants a multipart boundary?
  • Hi,

    I'm attempting to implement Uploadifive in a Scalatra site, and using the Apache Commons FileUpload component to accept the upload.

    It seems that no matter what I do, Commons refuses to allow the file upload, saying this:

    HTTP/1.1 500 the request was rejected because no multipart boundary was found

    Do you have any suggestions as to how I can get this to work?
  • I'm in the same boat. java.io.IOException: Separation boundary was not specified and produces a 500 error.
  • Just to note: renhack is saying that changing the content-type to "application/octet-stream" instead of "multipart/form-data" on line 405 of uploadifive.js works:

    http://www.uploadify.com/forum/#/discussion/8219/no-boundary-separator-in-content-type

    However, for me this doesn't do the trick, as I get back:

    the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/octet-stream
    org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/octet-stream


    So I'm still somewhat stuck.
  • i read the http request body in as binary and wrote to file using the name in the headers. Again, its still a boundary issue and should be handled as such. My way was just a workaround until uploadify is corrected.

    Boundary explanation here. http://en.wikipedia.org/wiki/MIME#Multipart_messages

    If I get a chance tomorrow I'll modify the uploadify js to include it.
  • Direct message me with your paypal emails and I'll send you a new version that uses an updated method for uploading that should be compatible with what you're using it for.
  • Awesome... thanks. What you posted above wouldn't work anyway unless you append the file using FormData(). It should wire up the boundary automatically. I think the original plugin is fine, it just didn't need the multipart/form-data bit and some documentation it was an xhr2 post so people weren't expecting to handle it as standard formData. I guess whatever you tested with didn't check content-type. I'm curious to see your changes, but honestly, I'm pretty happy just reading the body in as binary and I love the new version.