fix: add url to local for custom method to use
This commit is contained in:
parent
92ee2ce291
commit
3a64effe9b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue