HTML 5 Tip 3 - How to Detect folders in Safari
Today i am going to show how to Detect folders in Safari in html with simple code. I hope you will understand this.
If you have any query you can ask.
i hope you will like it.
Array.prototype.forEach.call(e.dataTransfer.files, function (file) {
var r = new FileReader();
r.onload = function (event) {
addFile(file);
};
r.onerror = function (event) {
alert("Uploading folders isn't supported in Safari browser!");
}
r.readAsDataURL(file);
});
Follow me at : https://steemit.com/@ahmadhassan
=========================================================
Thanks for reading and always welcome your suggestions :) =========================================================
It was a useful post
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit