uppy
Adds a widget to upload files via Uppy (https://uppy.io/).
Uses the chunking, resumable, TUS file transfer protocol (https://tus.io/).
For decoupled / CORS purposes, you will need to add these allowed headers to your services.yml:
'upload-checksum', 'upload-concat', 'upload-key', 'upload-length', 'upload-metadata', 'upload-offset', 'location', 'tus-checksum-algorithm', 'tus-extension', 'tus-max-size', 'tus-resumable', 'tus-version'
Requirements:
Currently only works with the TUS uploader available here on drupal.org.
If you are using Drupal as a REST endpoint only, you can also use Uppy directly through your frontend, in which case you will not need this module. You just need to add these values to the meta property in Uppy core (examples included):
meta: {
entityType: 'node',
entityBundle: 'article',
fieldName: 'field_image'
}Upgrading to 3.0.x:
You can safely upgrade from 8.x-2.x to 3.0.x with no special steps required. This was just a D9.3+ & D10 compatibility update.
Experimental!
It currently uploads files reliably and saves to the entity, however I anticipate users to discover an issue somewhere.