I attempted to utilize:
<input type="file" accept=".zip" ID="FileUpload1" Style="display: none" runat="server" onchange="upload()" />
and
<asp:FileUpload ID="FileUpload1" onchange="upload()"/>
Client SIDE
function upload() {
var btn = document.getElementById('<%= hideButton.ClientID %>');
btn.click();
}
<asp:Button runat="server" ID="hideButton" Text="" Style="display: none;" OnClick="UploadButton_Click" />
Server SIDE
protected void UploadButton_Click(object sender, EventArgs e)
{
}
however none of them are functioning. While I am able to import .doc, .rar, or .zip files, when I choose a .exe file or a .zip containing a .exe, I encounter this issue: https://i.sstatic.net/rpkCJ.png
When I debug the code and attempt to upload a .exe file, the UploadButton_Click function is not triggered. Is there something specific that needs to be configured in the web.config to allow the application to handle .exe files? I have searched extensively for information on this problem, but it seems like the web app may not support .exe files, or possibly the browser as well (I tested on IE and Chrome).
Edit:
1)So I disabled all firewall settings and tried again, with no success.
2)I checked the Windows Defender firewall settings and everything appears to be set to allow Chrome to communicate through the firewall.