'how to remove the warning "This will upload all files from [Folder]. Only do this if you trust this site."

While uploading the folder using Webkitdirectory html feature, we come across the warning message that says "This will upload all files from [Folder]. Only do this if you trust this site."

I want to remove this warning.

<input type="file" id="filepicker" name="fileList" webkitdirectory multiple />


Solution 1:[1]

Unfortunately there is no way to fix it because there is a new security policy:

previously you could socially engineer a user into holding enter and it uploaded their whole home folder to the attacker site.

There is no way of skipping this step.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Evil-Coder