<div id="divDropZone">
<p>
Drag and drop an Image to Upload
</p>
<p>
<button id="btnInsertButton">Or Select Image to Upload</button>
</p>
</div>
<CuteWebUI:Uploader runat="server" ManualStartUpload="false" ID="UploaderFile"
InsertButtonID="btnInsertButton" DropZoneID="divDropZone" OnFileUploaded="Uploader_FileUploaded">
<ValidateOption AllowedFileExtensions=".png,.jpg,.bmp,.jpeg,.gif" MaxSizeKB="10240" />
Above is the code that renders the dropzode wherein user can drag & drop files to upload it.
Here is the description of the 3rd party DLL, dev framework used and the browser description:
- 3rd Party Product Name: CuteWebUI.AjaxUploader.dll 4.0
- Dev Framework: .Net Framework 4.5
- Browser: GoogleChrome 60.0.3112.101(64 bit)
Here are the steps to reproduce the problem:
Created an web page(ASPX page) in .NET Framework 4.5.
Created a user control and added its reference to the web page created in step #1.
Added reference of "CuteWebUI.AjaxUploader.dll" and the path of licence file in web.config.
Implemented the above code in user control that is created in step #2.
Added 2 instances of user control created in step #2 i.e. one in ResumeUpload section and another one in Bootstrap Popup.
When we use only one instance of user-control instead of 2 (that we need to avoid repetition of code), it works as expected.
But when we add 2 instances of user control, it throws the following exception while dragging and dropping the file in dropzone: "Server side exception, failed to upload Sample.pdf Debug information: System.Exception: X1 GUID Error\ x0D\ x0A at CuteWebUI.UploadModule.a(@HttpContext A_0, GUID A_1)
NOTE: We tried with the following but it didn't work for us:
<ValidateOption EnableMimetypeChecking="false" />