Bootstrap drag and drop file upload with preview

Today, We want to share with you drag and drop file upload bootstrap.In this post we will show you dragdrop multiple file upload, bootstrap, hear for Custom drag file upload in Bootstrap 4 we will give you demo and example for implement.In this post, we will learn about
5 Ways to bootstrap file upload
with an example.

Bootstrap 4 Image And Files Drag and Drop With Upload

Step 1: HTML Code

<!DOCTYPE html>
<html lang="en">
    <link href="" rel="stylesheet">
    <link href="" media="all" rel="stylesheet" type="text/css"/>
    <link href="" media="all" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="style.css">
<body class="bg-danger">
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-sm-12 col-11 main-section">
                <h2 class="text-center text-danger">File Input Example</h2><br>
                <form enctype="multipart/form-data">
                    <div class="form-group">
                        <div class="file-loading">
                            <input id="file-1" type="file" multiple class="file" data-overwrite-initial="false" data-min-file-count="2">
    <script src=""></script>
    <script src="" type="text/javascript"></script>
    <script src="" type="text/javascript"></script>
    <script src="" type="text/javascript"></script>
    <script src="" type="text/javascript"></script>


CSS Code

Step 2:

	margin:0 auto;
	padding: 20px;
	margin-top: 100px;
	background-color: #fff;
	box-shadow: 0px 0px 20px #c1c1c1;
	display: none;

Free Live Chat for Any Issue

JavaScript code

Step 3:

    theme: 'fa',
    uploadUrl: '#',
    allowedFileExtensions: ['jpg', 'png', 'gif'],
    overwriteInitial: false,
    maxFilesNum: 10,
    slugCallback: function (filename) {
        return filename.replace('(', '_').replace(']', '_');


I hope you get an idea about Bootstrap 4 file upload form with dragdrop Example.
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.