Browser alert for uploading complete folders

If you're using Chrome - and, according to browser usage share statistics, you're more likely to do so, than not - you've probably noticed an annoying popup when uploading a complete directory.

 

Upload folder warning in Chrome browser

 

Using webkitdirectory in Chrome, there is a warning message that appears. The message reads: "Upload [number of files] files to this site? This will upload all files from [directory name]. Only do this if you trust the site."

 

This started just recently in Chrome version 66.0.3359.139 as a new security feature. In previous versions of Chrome, you could socially engineer a user into holding the enter key and upload their whole home folder to any malicious site of choice. (You can read more details about this here.)

 

Since this is a security feature, it's not likely to go away any time soon. It's probably not the most ideal way of making users aware of this issue, and you might even say that it protects against a far-fetched idea of an attack, making legit applications put up with bad user experience with a disregard for UX considerations.

 

The best course of action for you, as a site owner, would be to inform your users of this new popup that they will likely see in the future as Chrome updates are being deployed constantly and prepare yourself for a number of e-mails and inquiries about this problem.

Guides, cheatsheets and tips about the increasingly important role of images in modern web design. Follow me on Twitter and Facebook too, for more handy content!

You might also like
Google Images new interface is on the way?
Shardimage.com 1 min read
Since Google have not given any sign whether they going to test or announce a new function, many people tried to find out...
JPG vs. JPEG image formats
Shardimage.com 1 min read
JPEG or JPG stands for Joint Photographic Experts Group and it is a file format that is able to store images.
Should I use an image CDN?
Shardimage.com 3 min read
An image CDN will speed up your website significantly, deliver your images to end users as fast as possible. But do you...