Module manage

Module manage 

Source
Expand description

Endpoints for getting file info, deleting, renewing the ID, and looking up owned files.

Structs§

FileInfoResponse
Public metadata returned by the file-info and owned-files endpoints.
FilePair
An ID and delete-token pair to prove you own a file.
OwnedFilesRequest
Request body for the owned-files bulk lookup endpoint.
OwnedFilesResponse
Response containing the caller’s owned files.
RenewParams
RenewResponse
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.