can i set the number of files or images allowed to upload

  • cspeti
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0

cspeti created the topic: can i set the number of files or images allowed to upload

Hi

I like to make a content submission form, and like to let the user to upload some images. I have some question about file/image upload.

If i leave the upload field at default settings, the user can upload 1 file/image.
If i turn on the HTML5 upload, and dont set multi upload at the advanced tab the user can upload, one file, but can do it unlimited time, so he can add unlimited file. Add 1 file, click the upload icon again add another file, and another....
If i turn on HTML5 + multi upload the user can upload unlimited file in 1 time.

How can i permit to upload only 3 file?

Need to add 3 separated file upload element and let the user upload 1 file, per element?

Or can i add some script to the upload element to count the number of the file uploaded, and restrict new upload if the number of images is 3?
#239713
  • Posts: 3128
  • Karma: 105
  • Thank you received: 411

mihaela replied the topic: can i set the number of files or images allowed to upload

Hello,

I have answered on the ServiceDesk ticket that you have raised, but here is the answer as well.

I understand how you want this to work.

Please take a look at this topic since here crosstec.org/en/forums/3-breezingforms-f...-upload.html?start=0 it is explained how to limit the number of uploaded files in a multi-upload field.

Please note that the user will be able to upload multiple files, but when he clicks on the submit button an error message will appear if he had uploaded more than 3 files.

Let me know whether you have managed to set this for your form.

Regards,

Mihaela
#239726
The following user(s) said Thank You: cspeti
  • cspeti
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0

cspeti replied the topic: can i set the number of files or images allowed to upload

Thanks Mihaela

This was what i needed! Working fine.
#239762
  • Posts: 3128
  • Karma: 105
  • Thank you received: 411

mihaela replied the topic: can i set the number of files or images allowed to upload

Hi again,

Great! I'm glad that you have managed to set this up and that it is working as you wanted. :)

Regards,

Mihaela
#239763
Moderators: ForumSupporttomeperica
Time to create page: 0.046 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here