We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problems with uploader

Thread ID:

Created:

Updated:

Platform:

Replies:

141749 Jan 2,2019 05:34 PM UTC Jan 10,2019 05:26 AM UTC ASP.NET Core - EJ 2 3
loading
Tags: File Upload
Toni
Asked On January 2, 2019 05:34 PM UTC

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


Christopher Issac Sunder K [Syncfusion]
Replied On January 7, 2019 11:31 AM UTC

Hi Tony, 

Thank you for contacting Syncfusion support. 

We have checked your issues. Please find the details in below, 
 
Issue 1: My control shows no drop area. 
  
  • We have prepared a sample as per shared screenshot to reproduce reported issue.
  • From the shared code snippet, we suspect that the issue raised due to missing drop target element (which you specified in dropArea” api) in Page.
  • If invalid target specified in drop target, the message “or drop files here” text will not be displayed properly.
  • In the prepared demo sample, we have used dialog as “dropArea” target.
  • If we didn’t specify drop target, the upload element act as default drop target.
  • Please check it in the attached demo sample.
  
Issue 2: Can't manage when a file already exists. 
  • We have already made this improvement to pass own error message from server to client.
  • The improvement will be available in upcoming patch release. (scheduled on 8th Jan)
 
Demo sample:  
 

Please let us know if you require any further assistance. 

Thanks, 
Christo

Toni
Replied On January 9, 2019 11:16 AM UTC

Hello.
Drop area issue has been solved thank to your advice.

I've seen that the new version has been released. Do you know when it will be available for the nuget packages?
Thanks

Prince Oliver [Syncfusion]
Replied On January 10, 2019 05:26 AM UTC

Hi Toni, 

Thank you for your update. 

The Nuget packages will be refreshed in next patch release scheduled to be rolled out by next week. 

Regards, 
Prince 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;