diff --git a/frappe/public/js/frappe/form/footer/attachments.js b/frappe/public/js/frappe/form/footer/attachments.js index 9fef9e5436..49b2137349 100644 --- a/frappe/public/js/frappe/form/footer/attachments.js +++ b/frappe/public/js/frappe/form/footer/attachments.js @@ -228,7 +228,7 @@ frappe.ui.get_upload_dialog = function(opts){ 'method': 'frappe.client.get_value', 'args': { 'doctype': 'File', - 'fieldname': ['file_url','filename'], + 'fieldname': ['file_url','file_name'], 'filters': { 'name': dialog.get_value("file") } @@ -260,4 +260,4 @@ frappe.ui.get_upload_dialog = function(opts){ }); return dialog; -} +} \ No newline at end of file