File Upload – can multiple file attempts be added instead of replaced? [closed]
File Upload – can multiple file attempts be added instead of replaced? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I have an input field: <input type="file" id="images" name="images[]" value="" class="test" multiple="">
This is a file upload with multiple file upload ability.
Is it possible to make is so the input fields adds the files when user uploads files in multiple attempts?
Example:
CURRENT FLOW:
User uploads 3 images
(User remembers he has more images)
User Uploads 2 more images
Result: 2 images added to input field.
WHAT I WANT:
User uploads 3 images
(User remembers he has more images)
User Uploads 2 more images
Result: 5 images added to input field.
Is this possible or this will require rewriting how the input field works?
PS: currently I'm using a Wordpress plugin to manage the upload field, so I cant do too many modifications on the backend. I was wondering if front-end(JS) can be used to pool up the items?
I tried writing a bunch of JS to manage this field, but every time the popup for the files shows up and you add the items, it just overwrites the previously uploaded files.
You can use this to choose images and content as HTML format wp_editor("Your input name", 'product_image', array('editor_height'=>200,'editor_width'=>300, 'media_buttons' => true) );
February 13, 2024
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand
February 13, 2024