Merge pull request #34119 from akhilnarang/fix-pdf-check

fix: don't call `file.check_content()` twice
This commit is contained in:
Akhil Narang 2025-09-24 18:32:48 +05:30 committed by GitHub
commit a19f0d69dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,6 @@ class File(Document):
self.validate_file_url()
self.validate_file_on_disk()
self.file_size = frappe.form_dict.file_size or self.file_size
self.check_content()
def validate_attachment_references(self):
if not self.attached_to_doctype: