Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show a loading graphic while a file is getting uploaded?

The file should be uploaded in the background via Ajax or Iframes. I should be able to detect via javascript when the upload has completed, so I can hide the loading graphic and redirect the user to a new URL. Using Jquery is fine.

like image 436
Ali Avatar asked Jan 26 '26 22:01

Ali


1 Answers

Check out jQuery Uploadify

EDIT: There's also a similar question: how-to-upload-file-jquery - you could display the graphic after the upload button has been clicked and hide in the success/onerror function callback.

like image 90
Jose Basilio Avatar answered Jan 28 '26 14:01

Jose Basilio