tarkvsg Posted December 7, 2019 Posted December 7, 2019 Hello Loading images into field with type of "image" And could upload only(!) 166 files. In config of Image type Field in the 'miximum files allowed' field is 0. is 166 magic number or it whichever restriction ? P.S. ProcessWire 3.0.123
tarkvsg Posted December 8, 2019 Author Posted December 8, 2019 "WireInput: You have reached PHP’s “max_input_vars” setting of 1000 — please increase it." PHP was configured "by default". When increasing this value - than can upload more images.
picarica Posted October 25, 2020 Posted October 25, 2020 On 12/8/2019 at 11:47 AM, tarkvsg said: "WireInput: You have reached PHP’s “max_input_vars” setting of 1000 — please increase it." PHP was configured "by default". When increasing this value - than can upload more images. i came across the same problem i need to upload ~1000 images and i got same error, every image has tag, how can this be resolved? does this count as necro bumping if it wasnt been resolved ?
Christophe Posted October 25, 2020 Posted October 25, 2020 https://www.php.net/manual/en/info.configuration.php#ini.max-input-vars As you may already know, it can be changed in your hosting provider account. Possible solution:https://modules.processwire.com/modules/process-admin-actions/ FTP Files to Page Add files/images from a folder to a selected page. Something that could be useful - to put in the admin.php file (source: Adrian): $this->addHookBefore('InputfieldFile::render', function($event) { $inputfield = $event->object; if($field = $inputfield->hasField) { if(!is_object($field)) return; $p = $event->object->hasPage; $inputfield->label .= ' (' . $p->{$field->name}->count() . ')'; } }); 3
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now