upload the same file is not working after an edit

hello am facing a problem am uploading a file with the name file1.text and i have some validation in the backend if the validation failed i display an error saying the file contain some iunwanted text if i edit the file and try to upload it again nothing will happen no event is triggered except if i changed the file or the file name i tried to rename the file in the event selectedevent but didnt work 

<SfUploader  CssClass="upload-file" AutoUpload="true" AllowMultiple="false" AllowedExtensions=".txt" MaxFileSize=2097152>

<UploaderEvents ValueChange="UploadFile" OnRemove="RemoveFile"></UploaderEvents>

</SfUploader>



private void UploadFile(UploadChangeEventArgs e)

    {

        try

        {

            ms = e.Files.FirstOrDefault().Stream;



           

        }

        catch (Exception ex)

        {

           

        }

    }

    private void RemoveFile(RemovingEventArgs args)

    {

        ms = null;

        

    }


i need to get the file upload every time even its the same file thank you


2 Replies

BS Buvana Sathasivam Syncfusion Team July 28, 2022 04:06 AM UTC

Hi Mohamed,


Greetings from Syncfusion support.


Currently, we are validating your reported query with high priority. We will update you with further details on or before July 29, 2022.


Regards,

Buvana S



UD UdhayaKumar Duraisamy Syncfusion Team July 31, 2022 10:38 AM UTC

Hi Mohamed,


The file select event will not get triggered for files with the same name uploaded for the second time. This is the intended behavior of the component.


Regards,

Udhaya Kumar D



Loader.
Up arrow icon