📁 Upload
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
existsendpoint. - If it is, don't upload it
- If it isn't, upload it with the
uploadendpoint - If the upload is complete, call the
completeendpoint - If all files are uploaded, call the
scanuploadedphotosendpoint
This is implemented in the ChunkedUploadButton component in the frontend. The progress is saved wihtin the state of the component.