Sfoglia il codice sorgente

fix: svg files upload

version-14
Roberto Murguia 4 anni fa
parent
commit
ad5506453e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/core/doctype/file/file.py

+ 1
- 1
frappe/core/doctype/file/file.py Vedi 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)


Caricamento…
Annulla
Salva