observe_media_upload_preprocess/2
Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue movies for conversion to mp4. You can set the post_insert_fun to something like fun(Id, Medium, Context) to receive the medium record as it is inserted.
Type:
Return:
modified #media_upload_preprocess{}
#media_upload_preprocess{} properties:
id:
unionmime:
binaryfile:
file:filename_all()|undefinedoriginal_filename:
file:filename_all()|undefinedmedium:
z_media_identify:media_info()post_insert_fun:
function|undefined