Cms: Handle large Asset uploads

Created on 31 Jan 2017  路  5Comments  路  Source: craftcms/cms

Created by: Fred Carlsen ([email protected]) on 2015/03/11 07:34:22 +0000
Votes at time of UserVoice import: 3


It would be great if Asset supported chunked and resumable uploads.

Some clients need to upload large files, and it's generally not a good idea to up those max_upload_size limits.

assets enhancement

All 5 comments

I would suggest looking at https://tus.io/ for implementing file uploading. This would remove all file size upload limits while also reducing memory usage for all file uploads in general. Streaming uploads would allow for faster uploading to 3rd party volumes like AWS - craft could pass the file along as it receives it instead of waiting for the entire file before sending to the volume. File uploading via form POST should be removed entirely as there is no upside.

Implementing chunked uploads would be really useful. Please consider it for Craft 4 or even 3.5 :)

This is definitely worth considering, however, tus-php currently requires PHP 7.1.3, so the first step is getting to a point where Craft requires something more recent than PHP 7.0.

Would tus-php be an better feature for the S3-plugin and not in the core? As one probably don't want to upload big files to a server? Might be an releavnt update now since Craft鈥檚 minimum PHP version requirement was increased to 7.2.5 in 3.6.

Worth re-visiting for 4.0 and considering it. Unlikely there will be Craft 3.7 and we're mixing things up with Volumes under the hood in 4.0.

Was this page helpful?
0 / 5 - 0 ratings