Support discard_original_filename
Support s3 and data:uri urls