Replaced spaces with underscore in filename (#3386)
This commit is contained in:
parent
6dcfd8fdb3
commit
3b88792815
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ frappe.upload = {
|
|||
var freader = new FileReader();
|
||||
|
||||
freader.onload = function() {
|
||||
args.filename = fileobj.name;
|
||||
args.filename = fileobj.name.split(' ').join('_');
|
||||
if(opts.options && opts.options.toLowerCase()=="image") {
|
||||
if(!frappe.utils.is_image_file(args.filename)) {
|
||||
msgprint(__("Only image extensions (.gif, .jpg, .jpeg, .tiff, .png, .svg) allowed"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue