I have an issue with the drag and drop of an image onto the website where if the file name has a bracket like [ or ] then it causes a problem with the upload. How do I check to see if the file name has this and if it does then how do I remove it?
function process_drop(evt) {
evt.stopPropagation();
evt.preventDefault();
var files = evt.dataTransfer.files;
//CHECK TO SEE IF FILE NAME HAS A BRACKET ?
// run through each file individually.
for (var i = 0, f; f = files[i]; i++) {
}
}