Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove warning message in Chrome when uploading a directory

When uploading a directory using webkitdirectory in Chrome, there is an ugly 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.

Is there a way to prevent this warning message from appearing or to at least prevent it appearing over and over for every upload to the same site?

screenshot

like image 287
Jim.Fun Avatar asked Mar 06 '23 06:03

Jim.Fun


1 Answers

This prompt is a new security feature.

Previously you could socially engineer a user into holding enter and it uploaded their whole home folder to the attacker site. There is no option or mechanism to skip it.

https://crbug.com/637098

like image 72
EricLaw Avatar answered Mar 19 '23 07:03

EricLaw