Direct file up loader issue

rajitha somarathna asked on May 3, 2016 11:57

I have used direct file uploader in my project to upload files. I need to display a message when a file has uploaded succesfully. How can i do that?

My direct file uploader code as follow

<CMS:DirectFileUploader ID="newAttachmentElem" runat="server" DisplayInline="true" InsertMode="true" UploadMode="DirectMultiple" Multiselect="true" ShowProgress="true" Enabled="true" />

Recent Answers


Trevor Fayas answered on May 3, 2016 15:48

You'll need to do it from the C# code, and i wasn't able to test this much, but I believe the event you want to get is "CommitTransaction"? If that isn't it, what i would do is add methods to the various events, then debug it and see which one hits after the file is actually uploaded.

protected void Page_Load(object sender, EventArgs e)
    {
        newAttachmentElem.CommitTransaction += newAttachmentElem_CommitTransaction;
    }

    void newAttachmentElem_CommitTransaction(object sender, EventArgs e)
    {
        ltrDone.Text = "finished!";
    }
0 votesVote for this answer Mark as a Correct answer

rajitha somarathna answered on May 3, 2016 18:21

When I upload a file this not refresh the page. So this method not works

0 votesVote for this answer Mark as a Correct answer

rajitha somarathna answered on May 9, 2016 10:11

?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.