Expand description
Endpoints for getting file info, deleting, renewing the ID, and looking up owned files.
Structs§
- File
Info Response - Public metadata returned by the file-info and owned-files endpoints.
- File
Pair - An ID and delete-token pair to prove you own a file.
- Owned
Files Request - Request body for the owned-files bulk lookup endpoint.
- Owned
Files Response - Response containing the caller’s owned files.
- Renew
Params - Renew
Response - Response returned after a successful file-ID renewal.
Functions§
- constant_
time_ 🔒eq - delete_
file_ form_ handler - POST /file/:id/delete - no-JS form deletion that redirects to /files.
- delete_
file_ handler - delete_
file_ 🔒inner - file_
info_ handler - owned_
files_ handler - renew_
file_ id_ handler - Rotate a file’s ID to get a new public URL. You prove ownership with the delete token. The DB updates and juicehost renames the file so it stays reachable at the new ID.