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
Fast and low latency HTTP communication on Shardimage.com using QUIC
Shardimage.com 1 min read
QUIC is a UDP-based encrypted transport protocol that is optimized for HTTPS in order to deliver traffic for Google's...
PNG paints no gloaming
Shardimage.com 1 min read
As an extension it is commonly used as .png. It is one of the most widely used file formats used for images among jpg and...
Google Image Publishing Guidelines
Shardimage.com 2 min read
These are the guidelines that Google suggests in order to increase the likelihood that your content will appear in Google...