1
Create the token on your backend
Fix everything the browser must not choose: folder, size, extensions and visibility. A token with a A token never replaces an existing file unless you create it with
prefix adds a random suffix to each name, so users cannot overwrite each other.overwrite: true (the default is false), so the user can’t overwrite what is already stored.Authenticate your own endpoint so only signed-in users can get a token.2
Upload from the browser
3
Save the URL
Send
obj.url (and obj.id) to your backend and store them with the user. Use the id for later changes; the URL only changes if you move the file.Troubleshooting
More on tokens in Authentication, size and path rules in Uploads, and per-folder limits in Folder rules.