Merge pull request #13199 from rovertzxd/fix-svg-uploads

fix: svg files upload
This commit is contained in:
mergify[bot] 2021-05-13 07:08:56 +00:00 committed by GitHub
commit 6dd6d4c3e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -498,7 +498,7 @@ class File(Document):
self.file_size = self.check_max_file_size()
if (
self.content_type and "image" in self.content_type
self.content_type and self.content_type == "image/jpeg"
and frappe.get_system_settings("strip_exif_metadata_from_uploaded_images")
):
self.content = strip_exif_data(self.content, self.content_type)