file uploader success messge

Chamod Tharuka asked on March 1, 2021 13:16

How to get a success message after the file upload?

Recent Answers


David te Kloese answered on March 1, 2021 13:18

Hi,

can you give us a bit more information about your setup and where it should happen?

Portal or MVC? live site user or in Admin? Bizform? Custom Web Part? or just a random control on the page?

0 votesVote for this answer Mark as a Correct answer

Chamod Tharuka answered on March 1, 2021 13:26 (last edited on March 1, 2021 13:35)

  • Portal
  • Admin
  • Custom Web Part

![Image Text](https://projects.enfection.com/ss/2.JPG) Image Text

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on March 1, 2021 13:39

and what do you want to happen? As (default) the files are not uploaded until the complete form is submitted!

0 votesVote for this answer Mark as a Correct answer

Chamod Tharuka answered on March 1, 2021 13:45

I need some success message after image/file upload.

Like "upload successfully."

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on March 1, 2021 13:53

Well since it's a custom web part it depends on your custom logic.

Have a look at the Event Handler for your Upload/submit button.

Depending if you have any validations or errors you could use something like:

   Page.Validate();

   if (Page.IsValid)
   {

      // Take some action based upon all data being valid.
   }
   else
   {

      // Take some other action based upon some some data being invalid.
   }
0 votesVote for this answer Mark as a Correct answer

Chamod Tharuka answered on March 1, 2021 13:54

Cool. I'll check. Thanks

0 votesVote for this answer Mark as a Correct answer

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