Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

172
Views
How to initialize separate Dropzones in one page?

We have 3 Dropzone in one page. As far as I know this is the way to made it custom:

<script>
    var md5 = ""
    var landingDropzone
    Dropzone.options.clientImageDropzone = {
      paramName: "file",
      acceptedFiles: "image/*",
      parallelUploads: 1,

What if the 3 drop zones in the same page works differently? Dropzones have Cropperjs and croppers has different aspect ratios. How would you pass aspect ratios into without the least copy-paste, redundancy to cause?

<script>
    Dropzone.options.clientImageDropzone = {

      init: function() {
        
        this.on('thumbnail', function (file) {

            reader.onloadend = function () {

                $landscape_img.load(function(){
                  setTimeout(() => {
                    $landscape_img.cropper({
                      aspectRatio: #if(newFrontend) {1.0,} else {2.185 / 1,}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!