Box content Uploader validation
回答済みHi team,
I would like to validate File name and extension of each files before upload the bulk files into BOX
var uploader = new Box.ContentUploader();
//shows upload UI element
function showUploadContainer() {
uploader.show(folderId, ACCESS_TOKEN, {
container: '.container'
});
}
uploader.on('beforeupload', function (data) {
alert(data[0].name);
// This popup works. But There is no way to stop firing or excluding the file in the uploader widgets. After this message, If I click upload, it uploads the file without any issues
return false; (This is not working)
});
when I upload the below files, I want to get the error message like you cannot upload as the file name has special characters (%) and file type not accepted
aaa.pdf
aaa.html
aa%a.docx
-
Hi there,
Welcome to Box Community and glad to assist!
To address your API related queries, you can also post this inquiry to our Developer team through this link.
Thanks for posting!
サインインしてコメントを残してください。
コメント
1件のコメント