This bug is happening again now, no drop region is work on any of the examples
Though I should add the problem is quite intermittent, sometimes, the drop area works but most of the time it just fails
Hi Amal Ayyash,
Thank you for getting back to us. We have validated the reported issue, but the dropArea configuration of the uploader is working as expected. We couldn’t replicate the reported issue. Based on our analysis, we suspect that the issue might be related to the dropArea configuration of the uploader.
To address this, we recommend adding the dropArea configuration by specifying the id of the div where files should be dropped. Please refer to the following code snippet:
Code Snippet:
[app.component.html]
<div id="droparea">Drop files here to upload</div> <div id="uploadfile"> <ejs-uploader #defaultupload [autoUpload]="false" [dropArea]="dropEle" [asyncSettings]="path" ></ejs-uploader> </div>
[app.component.ts]
public dropEle?: HTMLElement; ngOnInit() { this.dropEle = document.getElementById('droparea'); } public path: Object = { saveUrl: 'https://services.syncfusion.com/angular/production/api/FileUploader/Save', removeUrl: 'https://services.syncfusion.com/angular/production/api/FileUploader/Remove' };
|
We have also attached a runnable sample that demonstrates how to drag and drop files successfully. Kindly check it out
Please incorporate this modification into your code and test whether the issue persists. If the problem continues, kindly share the code snippet of your uploader component or modify the shared sample to replicate the issue on our end.
For a more accurate and tailored resolution, we also request a video illustration of the issue you are facing. This will assist us in providing detailed and effective suggestions.
For more information about adding dropArea, kindly refer to the documentation.
Documentation: https://ej2.syncfusion.com/angular/documentation/uploader/getting-started#adding-drop-area
Regards,
Yohapuja S