Hi,
Is there a way of changing the filename of a file (within the Javascript) that is about to be posted asynchronously? For example I have tried in the select method of the upload tool, the following:
"select": function (e) {
e.files[0].name = "changed_named.jpg";
}
However, when the file reaches my MVC controller action, the HttpPostedFileBase object has the original filename. I've also tried doing this in the 'upload' event with no luck.
Thanks,
Is there a way of changing the filename of a file (within the Javascript) that is about to be posted asynchronously? For example I have tried in the select method of the upload tool, the following:
"select": function (e) {
e.files[0].name = "changed_named.jpg";
}
However, when the file reaches my MVC controller action, the HttpPostedFileBase object has the original filename. I've also tried doing this in the 'upload' event with no luck.
Thanks,