fix for temporary files without the original_filename attribute.