Module z_media_sanitize

Check if an identified file is acceptable as upload.

Copyright © 2016 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Check if an identified file is acceptable as upload.

Function Index

is_file_acceptable/2Check the contents of an identified file, to see if it is acceptable for further processing.
sanitize/2Sanitize uploaded media (SVG) files.

Function Details

is_file_acceptable/2

is_file_acceptable(File::file:filename_all(), MediaProps::z_media_identify:media_info()) -> boolean()

Check the contents of an identified file, to see if it is acceptable for further processing. Catches files that might be problematic for ImageMagick or other file processors.

sanitize/2

sanitize(Media_upload_preprocess, Context) -> any()

Sanitize uploaded media (SVG) files.


Generated by EDoc