Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Progress bar for data upload

I am using laravel 5.1

I want to create a progress bar based on how long the file takes to upload.

I have multiple input fields and want to upload / get a progress bar on my submit button.

What would be the best (or good) approach of doing this.

I basically have a form and already upload some file in the database.

But I do not know how to create a upload progressbar based on this.

like image 728
John Does Legacy Avatar asked Feb 23 '26 10:02

John Does Legacy


2 Answers

I think the best way is to use a library like this one:

https://github.com/zimt28/laravel-jquery-file-upload

like image 192
Giacomo Torricelli Avatar answered Feb 26 '26 00:02

Giacomo Torricelli


I'd probably use something like Dropzone js

http://www.dropzonejs.com/

It would give you the added extra functionality of allowing you to drag and drop files into an upload area. Also allowing for multiple file uploads.

like image 35
andrew-caulfield Avatar answered Feb 25 '26 23:02

andrew-caulfield



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!