How can I give a better info to the user when a file is uploaded?

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

How can I give a better info to the user when a file is uploaded?

Post by nycwebmaster » 2020-07-15 13:15

How can I give a better info to the user when a file is uploaded instead of showing a little x? I want to give them a better graphic or text that the file is ok.

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: How can I give a better info to the user when a file is uploaded?

Post by pbottcher » 2020-07-16 17:41

Hi,

can you explain a little bit more detailed what you would expect.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: How can I give a better info to the user when a file is uploaded?

Post by onoehring » 2020-07-17 12:06

Hi,

well, does the user know "the file is ok"? You could generate a checksum of the uploaded file and display that. The user could then generate a checksum of his original and compare those.

Olaf

nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

Re: How can I give a better info to the user when a file is uploaded?

Post by nycwebmaster » 2020-07-17 15:27

I want to give them a message that will indicate that the file is ok rather than the little red x that is currently showing like this:

Image

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: How can I give a better info to the user when a file is uploaded?

Post by onoehring » 2020-07-18 06:59

Hi,

but you need to define what "file is ok" means. My suggestion was concerning the contents of the file.
The red x might be the option to delete the file (not sure right now)?
Maybe have a field that displays the filename once uploaded?

Olaf

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: How can I give a better info to the user when a file is uploaded?

Post by pbottcher » 2020-07-19 20:23

Hi,

I aggree, it would be helpful to understand what exactly you try to achieve.

You could try to add

$j('.clear-upload').text(' remove selected file')

to add some text to the "x".
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

Re: How can I give a better info to the user when a file is uploaded?

Post by nycwebmaster » 2020-07-21 13:23

Thanks! it worked!

Post Reply