- last update
over 1 year ago Patch Failed to Apply - π·π΄Romania abautu
I have prepared and tested a smaller patch. It doesn't offer all the features from the previous patches, but I'm adding it here in case it helps anyone.
It does only these things:
- enables chunking on all dropzone elements (using default chunk size of 2M from DropzoneJS)
- fixes missing response in the succes callback (in 5.7, the response parameter of success callback is an empty string for chunked uploads; this has been changed in 5.9 to be consistent between chuncked and regular uploads)
- fixes the upload callback to correctly write/append each chunk.I tested it by uploading files from 5 to 200MB on a PHP server with 20MB upload limit.
- last update
over 1 year ago 4 pass - π·π΄Romania abautu
Patch from #36 failed to apply to dev. I updated it here.
- last update
over 1 year ago 4 pass - π³π±Netherlands Nicasso
I made some additional changes to the patch #33, that @dishabhadra provided:
- I force the usage of chunking.
- I added a new settings value (max_filesize_default) to be able to set a new maximum file size, thus not depening on the PHP upload_max_filesize value)
- Changed the getting of CSRF tokens, to make chunking work for the Media library widgetWith these changes chunking now works for me in the following 2 places:
- Bulk upload (admin/content/media/bulk-upload)
- Media library widgetPatch applies on Dropzonejs version 2.8.0 and I used it with in combination with the Dropzone library version 5.9.3.
Complete patch + interdiff with #33 provided.
- last update
about 1 year ago 4 pass - π³π±Netherlands Nicasso
Patch file in #38 contained a mistake with info.yml files.
Correct it here in this patch.
- last update
about 1 year ago Patch Failed to Apply - π³π±Netherlands Nicasso
When using lightning media, you might also want to include this patch in combination with the path from #39.
- π¨π¦Canada vincent signoret
I applied patch #39 with
- - drupal 10.2.1
- - dropzonejs v2.8
- - entity_browser v2.10
I had a media 'document' containing a field of type File. This field has a maximum file size of 1000 MB. I added a widget to the display form of this field of type Entity Browser. This widget has the following configuration settings:settings: submit_text: 'SΓ©lectionner le document' auto_select: false upload_location: 'public://[date:custom:Y]-[date:custom:m]' dropzone_description: 'Drop files here to upload them' max_filesize: 1000M extensions: 'pdf odt ods xls xlsx doc docx xhtml xbrl zip' clientside_resize: false resize_width: null resize_height: null resize_quality: 1.0 resize_method: contain thumbnail_method: contain chunking: true force_chunking: true chunk_size: 2000000 parallel_chunk_uploads: true retry_chunks: true retry_chunks_limit: 3
When I tried to upload a file (900MB) I always have the error "File is too big (XXXMiB). Max filesize: XXXMiB."
With some debuging in DropzoneJsEbWidget.php line 165 the
$config = $this->getConfiguration();
returned the configuration I had set in the entity browser widget, except for the max_file_size. The max_file_size alwayss returned the value of my upload_max_filesize in my php.iniI have tried previous patches and different versions of enyo/dropzone, but I always face the same issue.
- π³π±Netherlands uberengineer
Patch #39 does not apply to dropzonejs 2.10.0
- Merge request !14Issue #3125682 by semiaddict: Support chunked uploads β (Open) created by semiaddict
- π©πͺGermany semiaddict
Just create a fork and a merge request on the latest version: https://git.drupalcode.org/project/dropzonejs/-/merge_requests/14
- π³π±Netherlands Nicasso
@uberengineer, hereby an updated patch for 2.10.0