What have you tried? It seems that you just copied this from somewhere and use that so far...
Here is a tutorial you can follow for Laravel: https://www.itsolutionstuff.com/post/laravel-6-dropzone-image-upload-tutorialexample.html
i dont know how to use js and upload image using dropzone
here is my code
<form action="{{route('sign.store')}}" method="POST" enctype="multipart/form-data" >
{{csrf_field()}}
<div class="col-lg-7 col-md-9 col-sm-12">
<div class="dropzone dropzone-default dz-clickable" id="kt_dropzone_1">
<div class="dropzone-msg dz-message needsclick">
<h3 class="dropzone-msg-title">Drop files here or click to upload.</h3>
</div>
</div>
</div>
<input type="text" class="form-control" placeholder="Enter zodiac name">
<input type="submit">
</form>
here is my js file
var demo1 = function () {
$('#kt_dropzone_1').dropzone({
url: "https://keenthemes.com/scripts/void.php",
paramName: "file",
maxFiles: 1,
maxFilesize: 5,
addRemoveLinks: true,
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
done("Naha, you don't.");
} else {
done();
}
}
});
Please or to participate in this conversation.