uploadcare / uploadcare-woocommerce

Uploadcare plugin for WooCommerce
MIT License
1 stars 2 forks source link

Min & Max Files #6

Open idiomsd opened 4 years ago

idiomsd commented 4 years ago

It looks like the "data-multiple-min" and "data-multiple-max" values are being sent on page load. How would I go about changing these values? I am using a jquery function to replace the values and they unfortunately aren't being recognized.

<input type="hidden" id="uploader" name="uploader" role="uploadcare-uploader" data-multiple="true" data-multiple-min="5919" data-multiple-max="5919" data-crop="1:1">

dmitry-mukhin commented 4 years ago

AFAIK, attribute changes on a DOM element are not recognised after the Uploader is initiated. You need to interact with it directly via JS API or reinitiate the Uploader after attributes are refreshed

https://uploadcare.com/docs/uploads/file_uploader/#configure