Use correct path for uploadFile action even when looking at a page in a folder
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
|
||||
var id = fieldAttributes.id || 'upload';
|
||||
var name = fieldAttributes.name || 'file';
|
||||
var action = fieldAttributes.action || 'uploadFile';
|
||||
var action = fieldAttributes.action || '/uploadFile';
|
||||
|
||||
html += '<form method=post enctype="multipart/form-data" ' +
|
||||
'action="' + action + '" ' + 'id="' + id + '">';
|
||||
|
||||
Reference in New Issue
Block a user