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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

File Upload Synchronously

Thread ID:

Created:

Updated:

Platform:

Replies:

146906 Aug 25,2019 07:36 AM UTC Jan 2,2020 01:39 PM UTC Blazor 3
loading
Tags: File Upload
Tsvetan
Asked On August 25, 2019 07:36 AM UTC

Hello,

When using the EjsUploader control like this: 

                    <EjsUploader Multiple=false                             
                                 AllowedExtensions=".png, .jpg, .jpeg, .gif"
                                 DropArea=".control-fluid"
                                 Files=@this.SyncfusionFiles
                                 AutoUpload="false"
                                 MaxFileSize="2000000">
                        <UploaderEvents OnUploadStart=@this.OnImageUpload></UploaderEvents>                       
                    </EjsUploader>

And I want to set the image that is uploaded to a property:
    public void OnImageUpload(UploadingEventArgs uploadingEventArgs)
    {
        var base64Content = uploadingEventArgs
            .FileData
            .RawFile
            .ToString()
            .Split(",");

        this.Image = new Image()
        {
            Contents = System.Convert.FromBase64String(base64Content[1]),
            Name = uploadingEventArgs.FileData.Name,
            Size = uploadingEventArgs.FileData.Size,
            Type = uploadingEventArgs.FileData.Type
        };

        this.InvokeAsync(this.StateHasChanged);
    }

The animation stays as ready for upload and I want it to become Succesfully uploaded, also this event  OnImageUpload doesn't get called.

What should I change to be able to achieve this?

Kind Regards,
Tsvetan

Gopi Govindasamy [Syncfusion]
Replied On August 26, 2019 09:19 AM UTC

Hi John, 

Greetings from Syncfusion support.  

We have validated your reported issue and this is known issue in our end. We have already logged bug report for it. We will fix the issue and the fix will be included in our upcoming patch release which is scheduled on 28th August 2019. You can track the status of the reported issue from the below feedback link.  


We have provided workaround details also in the above feedback. 

Regards, 
Gopi G. 


Sureshkumar P [Syncfusion]
Replied On January 2, 2020 01:39 PM UTC

Hi Jalil, 
 
Thanks for your update. 
 
We have given the previous requirement with save API. But we did not have a support to upload file without save API. We already logged this as a feature in our end We will include the feature in upcoming Volume-1 2019 release. which is expected to be rolled on end of March ,2020. We appreciate your patience until then. You can track the status of the feature in the below feedback link from below.   
  
 
Regards, 
Sureshkumar P 


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

Live Chat Icon For mobile
Live Chat Icon