How does it work?
It uses the endpoints of the backend to upload the files in chunks. The steps are:
- Only show button if upload is enabled in admin area
- Check if file is on the server by using the
- If it is, don't upload it
- If it isn't, upload it with the
- If the upload is complete, call the
- If all files are uploaded, call the
This is implemented in the
ChunkedUploadButton component in the frontend. The progress is saved wihtin the state of the component.