Expand description
Helper functions related to uploading to file storage.
Re-exportsΒ§
pub use crate::domain::authorization::AuthorizationToken;
StructsΒ§
EnumsΒ§
- File
Type π
ConstantsΒ§
- FILE_
SIZE_ πLIMITS
FunctionsΒ§
- 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. - make_
filename_ πsafe - nested_
path π - path π
- Processes an upload from an exercise service or an exercise iframe. This function assumes that any permission checks have already been made.
- Processes an upload from CMS.
- Uploads the data from the multipart
field
to the givenpath
in file storage. - Processes an upload from CMS.
- Processes an upload for an organizationβs image.
- Generates a path for an audio file with the appropriate extension.