Hello.
I'm facing 2 issues managing an Uploader control.
1st) My control shows no drop area.
As you can see in the image, I get no message to drop files and if I do that, the browser just loads the image.
The uploader control is shown inside a Dialog control but I don't think this should be a problem.
This is the asp code:
@{
var Modalanimation = new Syncfusion.EJ2.Popups.DialogAnimationSettings { Effect = Syncfusion.EJ2.Popups.DialogEffect.Fade };
var asyncSettings = new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = @Url.Content("/Activitats/UploadImage"), RemoveUrl = @Url.Content("/Activitats/RemoveImage") };
}
<ejs-uploader id="UploadFiles" success="OnSuccess" failure="OnFailure" dropArea=".control-fluid" asyncSettings="@asyncSettings" locale="ca-ES" autoUpload="true" multiple="false">
</ejs-uploader>
2nd) Can't manage when a file already exists.
I check if file already exists in the controller and, if so (like I saw in your samples), I return a 204 status code with a custom message. But the control is returned to the OnFailure function without the real message so the user could thing that there is a server error.
This is the code:
And the js debugger:
Thanks in advance.
Toni