I have a page where we upload files. I'm using FileUpload.js file for upload feature. I also a box for drag and drop for the files, everything works great in Chrome, Firefox and Edge but in IE 11, when I try to drag and drop the file in the box, I get this error:
Unable to get property 'Value' of undefined or null reference
I'm calling fileupload function like this
$('#fileupload').fileupload({
maxChunkSize: 10000000,
maxFileSize: 2147483648,
autoUpload: true,
dropZone: $('#dragAndDropHandler')
});
The HTML code is below -
<div id="fileupload">
<div class="fileupload-buttonbar">
<label class="fileinput-button" style="background-color:#dddddd" >
<span class="addfile" style="font-size:larger;font-weight:300;" >Add files...</span>
<input id="file" type="file" name="files[]" multiple onchange="setButtons(this)" />
</label>
<label style="color:black">CTRL + Click to select multiple files</label>
</div>
<div class="fileupload-content" >
<div id="dragAndDropHandler"><span>Drag & Drop Files Here</span></div>
<table class="files"></table>
<div class="fileupload-progressbar"></div>
</div>
</div>
I tried to pass the datatype: 'application/json'
and dataType: 'text/plain'
it didn't work.
I tried to implement this answer but that didn't work.