Hi. I am uploading a file and after the upload,in the controller, there is some manipulation of the file and db inserting. During all this time I would like to show a loading image that should disappear when the controller end all its operations. How can I do that?
If you are using ajax you can use: https://github.com/malsup/blockui or http://malsup.com/jquery/block/
Call the blockUI() function in "beforeSend" property of ajax call. Then Call the UnblockUI() function in "complete" property of ajax call. You may also need to handle the blocking and unblocking in case of errors.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community