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

108
Views
How to set a limit on the number of uploaded images?

I used ckeditor 5 library for my textarea

I have this JS code

jQuery(function ($) {
        ClassicEditor.create(document.querySelector('#history-description'), {
            "toolbar": ["imageUpload", "bold", "link", "bulletedList", "uploadImage", "blockQuote"],
            "ckfinder": {
                "uploadUrl": "uploadImage.php",
                "options": {
                    resourceType: ['jpeg', 'png', 'jpg']
                }
            },
        }).then(editor => {
            // editor.plugins.get('FileRepository').on('change:uploadTotal', evt => {
            //     console.log('Image uploaded evt');
            //     console.log(evt);
            // });
        }).catch(error => {
            console.error(error);
        });
    });

How to set a limit on the number of uploaded images?

For example: the maximum number of uploaded files can only be 10

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!