blueimp/jQuery-File-Upload — Issue #844: What is the best set of options for chunked uploads?
Author: richardcrichardc
Created: 2011-12-06 03:11:56+00:00
State: open

I am confused by the documentation and sample code.

The documentation suggests chunked transfers will only work with Firefox if an HTTP PUT is done:
> For chunked uploads to work in Mozilla Firefox, the multipart option has to be set to false
and
> If this option is set to false, the file content is streamed to the server url instead of sending a RFC 2388 multipart message for
XMLHttpRequest file uploads.
> Non-multipart uploads are also referred to as HTTP PUT file upload.

However the sample php code does not accept PUTs:
> switch ($_SERVER['REQUEST_METHOD']) {
> case 'OPTIONS':
> break;
> case 'HEAD':
> case 'GET':
> $upload_handler->get();
> break;
> case 'POST':
> $upload_handler->post();
> break;
> case 'DELETE':
> $upload_handler->delete();
> break;
> default:
> header('HTTP/1.1 405 Method Not Allowed');
> }

What is the best approach to get:
* Multi file uploads
* Chunked uploads for large files
* Maximum compatibilty for modern browsers (I don't need to support IE 6}

I am not at all constrained by frameworks at the server end. I can handle PUTs, and POSTs of any mimetype.

Thanks in advance. This is a brilliant javascript library, however I am struggling with the documentation.