fix: add url to local for custom method to use

This commit is contained in:
David 2024-10-01 16:21:29 +02:00
parent 92ee2ce291
commit 3a64effe9b
No known key found for this signature in database
GPG key ID: AB15A6AF1101390D

View file

@ -173,6 +173,7 @@ def upload_file():
args["max_height"] = int(frappe.form_dict.max_height)
content = optimize_image(**args)
frappe.local.uploaded_file_url = file_url
frappe.local.uploaded_file = content
frappe.local.uploaded_filename = filename