As a new web developer, I am eager to create a grid of file upload zones on my site.
I have decided to use DropZone.js for this project. I have customized DropZone and added multiple drop zones in the HTML. The grid layout consists of four rows with four zones each. Currently, all zones display the default message:
"Drop files here to Upload"
However, I want to personalize these messages so that each zone has its own unique description. This leads me to my question: How can I achieve this?
I have provided the necessary HTML, .js, and .css files for Dropzone.js on my site. Is there a way to access elements from the HTML in JavaScript and modify the
dictDefaultMessage: "Drop files here to upload",
to show different text for each element?
All the drop zones are connected to the same parent, and creating separate configurations for each zone seems impractical. I am relatively new to web development, so a detailed explanation would be very helpful.
Thank you in advance for your assistance.
Dropzone.prototype.defaultOptions = {
url: null,
method: "post",
withCredentials: false,
parallelUploads: 2,
uploadMultiple: false,
// Rest of the code truncated for readability
<title>Zone #16</title>
<script src="/home/dan/Documents/YNGWork/Projects/FRANK/WebPage/DragDropWebUI/dropzone-4.3.0/dist/dropzone.js"></script>
<link rel="stylesheet" href="/home/dan/Documents/YNGWork/Projects/FRANK/WebPage/DragDropWebUI/dropzone-4.3.0/dist/dropzone.css">
// Rest of the code truncated for readability