Uploading Directories At Once With webkitdirectory

Share This Post






 



 


If you’ve ever tried to implement a bulletproof, good-looking file uploader, you might have encountered an issue: uploading an entire folder or folders of files is usually quite a hassle, as files in each folder have to be selected manually. And then some folders might contain sub-folders as well.

input webkitdirectory

Well, we can use webkitdirectory, a non-standard attribute that allows users to pick a directory via a file input. Currently supported in Chrome, Firefox and Edge.

The post Uploading Directories At Once With webkitdirectory appeared first on Smashing Magazine.

https://www.smashingmagazine.com