I was trying to upload file(s) using PrototypeJs request method but I failed.
The code I am using,
<form enctype="multipart/form-data" id="form1" runat="server" action="ajax.aspx"
onsubmit="upMe(this);return false;" >
If I make return true instead of false, the file is uploaded but that makes postback which I dont want as I am using the method request from PrototypeJs.
And the function upMe is very simple,
function upMe(frmEle) {
$(frmEle).request({
method: 'post',
parameters: {},
onComplete: function() { alert('file has been uploaded'); }
});
}
What I am missing to upload file in the above way?
Thank you so much.