Laravel File Upload Progress Bar Example Tutorial

Laravel Redirect To Another URL / Web Page - HTTP Laravel Redirects

Today, We want to share with you Laravel File Upload Progress Bar Example Tutorial From Scratch.In this post we will show you Laravel Ajax File Upload Progress Bar, hear for Laravel File Upload Progress Bar Meter Tutorial Ajax we will give you demo and example for implement.In this post, we will learn about Ajax File Upload with Progress Bar using Laravel JQuery with an example.

Laravel File Upload Progress Bar Example Tutorial From Scratch

There are the Following The simple About Laravel File Upload Progress Bar Example Tutorial From Scratch Full Information With Example and source code.

As I will cover this Post with live Working example to develop Laravel Progress Bar for PHP AJAX File Upload, so the some PHP Laravel File Upload with Progress Bar for this example is following below.

Read Also:  Laravel Define Global constants Config variables value

Step 1: Create Routes

PHP Laravel File Upload with Progress Bar in Laravel Route, Model and Controller.


Route::get('live-img-file-upload-example', '[email protected]');
Route::post('live-img-file-upload-example', '[email protected]')->name('imgfileUploadPost');

Step 2: Make a Laravel imgfluploadController



namespace App\Http\Controllers;
use Illuminate\Http\Request;
class imgfluploadController extends Controller
    public function imgfileUpload()
    	return view('imgfileUpload');

    public function imgfileUploadPost(Request $request)
            'file' => 'required',

        $imgflName = time().'.'.request()->file->getClientOriginalExtension();
        request()->file->move(public_path('files'), $imgflName);
        return response()->json(['success'=>'Good Luck, You have 100% successfully All files or images uploaded.']);

Step 3: Make a Laravel Blade File


<!DOCTYPE html>
    <title>Laravel File Upload Progress Bar Example Tutorial From Scratch -</title>
    <link rel="stylesheet" href="bootstrap/4.1.3/css/bootstrap.min.css">
        .progress { position:relative; width:100%; border: 1px solid #7F98B2; padding: 1px; border-radius: 3px; }
        .bar { background-color: #B4F5B4; width:0%; height:25px; border-radius: 3px; }
        .percent { position:absolute; display:inline-block; top:3px; left:48%; color: #7F98B2;}

<div class="pakainfo container">
    <div class="pakainfo card">
      <div class="pakainfo card-header">
        <h2>Laravel 5.6 - File upload with progress bar -</h2>
      <div class="pakainfo card-body">
            <form method="POST" action="{{ route('imgfileUploadPost') }}" enctype="multipart/form-data">
                <div class="gst form-group">
                    <input name="file" id="poster" type="file" class="form-control"><br/>
                    <div class="progress">
                        <div class="bar"></div >
                        <div class="percent">0%</div >
                    <input type="submit"  value="Submit" class="btn btn-success">

<script src="//"></script>
<script src="//"></script>

<script type="text/javascript">

    function validate(formData, jqForm, options) {
        var form = jqForm[0];
        if (!form.file.value) {
            alert('File not found');
            return false;

    (function() {

    var bar = $('.bar');
    var percent = $('.percent');
    var status = $('#status');

        beforeSubmit: validate,
        beforeSend: function() {
            var totalValPercentage = '0%';
            var posterValue = $('input[name=file]').fieldValue();
        uploadProgress: function(event, position, total, percentComplete) {
            var totalValPercentage = percentComplete + '%';
        success: function() {
            var totalValPercentage = 'Wait, Saving';
        complete: function(xhr) {
            alert('Good Luck Your File or Images Uploaded Successfully');
            window.location.href = "/live-img-file-upload-example";


Step 4 :

and last step to finally I am 100% successfully ready to Laravel project run DataTables Server-side Processing in Laravel Therefor run bellow simple command ro quick On terminal run

Read Also:  Vuejs color picker Plugins With Examples

Note :We must have to make a simple dirctory Name “files” folder with 777 full rights permissions.

php artisan serve

Step 5 : Run url on your browser

and then We can open this bellow url on your any mozila, chrome or any browser:


Angular 6 CRUD Operations Application Tutorials

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

Read Also:  global variable for all controller and views in Laravel

I hope you get an idea about Laravel File Upload Progress Bar Example Tutorial From Scratch.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

About Pakainfo

I am Jaydeep Gondaliya, a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Pakainfo →

Leave a Reply

Your email address will not be published. Required fields are marked *