Upload UI allows upload via enter and clicking the upload button, causing double uploads

For some reason, if you press enter after selecting an asset to be uploaded, the button to upload won’t be disabled.

The problem here is when you didn’t know it’s being uploaded so you clicked the button again. The result is you will have 2 uploads.

How to reproduce:
Select an asset to be uploaded in website => press select and press enter => click the upload button

Solution:
Make button invisible and show a loading indicator, like when you click the upload button

image

3 Likes