Expand description
Helper functions related to uploading to file storage.
Re-exportsΒ§
pub use crate::domain::authorization::AuthorizationToken;
StructsΒ§
EnumsΒ§
ConstantsΒ§
- DEFAULT_
FILE_ πSIZE_ LIMIT - FILE_
SIZE_ πLIMITS
FunctionsΒ§
- delete_
file_ from_ storage - generate_
audio_ πpath - Generates a path for an audio file with the appropriate extension.
- generate_
file_ πpath - Generates a path for a generic file with the appropriate extension based on its filename.
- generate_
image_ πpath - Generates a path for an image file with the appropriate extension.
- get_
size_ πlimit_ for_ mime - make_
filename_ πsafe - nested_
path π - path π
- process_
exercise_ service_ upload - Processes an upload from an exercise service or an exercise iframe. This function assumes that any permission checks have already been made.
- upload_
certificate_ svg - upload_
exercise_ archive - upload_
field_ from_ cms - Processes an upload from CMS.
- upload_
field_ πto_ storage - Uploads the data from the multipart
field
to the givenpath
in file storage. - upload_
file_ from_ cms - Processes an upload from CMS.
- upload_
file_ πto_ storage - upload_
image_ for_ organization - Processes an upload for an organizationβs image.
- validate_
media_ πheaders - Generates a path for an audio file with the appropriate extension.