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
Security first - why should you restrict your API keys?
Shardimage.com 2 min read
Your API keys are the primary way Shardimage authenticates your access to the platform's APIs and SDKs.
Referral source URLs for Google Images updated
Shardimage.com 1 min read
Google decided to roll out a new referrel URL that is specific to Google Images over the course of the next few months.
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...