diff --git a/frappe/core/doctype/file/__init__.py b/frappe/core/doctype/file/__init__.py index e69de29bb2..ad28c17e36 100644 --- a/frappe/core/doctype/file/__init__.py +++ b/frappe/core/doctype/file/__init__.py @@ -0,0 +1,2 @@ +from .exceptions import * +from .utils import * diff --git a/frappe/core/doctype/file/file.py b/frappe/core/doctype/file/file.py index 6eb175d64d..985e5f50ba 100755 --- a/frappe/core/doctype/file/file.py +++ b/frappe/core/doctype/file/file.py @@ -22,16 +22,7 @@ from frappe.utils.file_manager import is_safe_path from frappe.utils.image import optimize_image, strip_exif_data from .exceptions import AttachmentLimitReached, FolderNotEmpty, MaxFileSizeReachedError -from .utils import ( - decode_file_content, - delete_file, - generate_file_name, - get_content_hash, - get_local_image, - get_web_image, - setup_folder_path, - update_existing_file_docs, -) +from .utils import * exclude_from_linked_with = True ImageFile.LOAD_TRUNCATED_IMAGES = True