Use correct path for uploadFile action even when looking at a page in a folder

This commit is contained in:
Leon Miller-Out
2013-09-17 12:36:53 -04:00
parent eb1e2f60f3
commit 665e493570
@@ -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 + '">';