Support the ongoing development of Laravel.io →
Laravel Blade Input

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?

Last updated 2 years ago.
0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

FELPONE felpone Joined 2 Jun 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.