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
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.
Adding free images to your blog using Creative Commons
Shardimage.com 3 min read
The images you find for your post are almost always subject to restrictive copyright terms. What can you do? Luckily, we...
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...