Hi gents,
Accidentally looking into our media library I found over 1200 png image files named qr_code-.png residing in our upload folder. They are all relating to tickets we are selling. It started at 29-01-2019.
Can you please tell if this is normal behavior because I don’t think so.
Do you know of any cause for this?
Is there a setting for this to turn off?
Can I delete them without consequences?
Thanks in advance
D. Valck
Hello,
Thank you for the message. Yes we have changed the code to save the qr code images in the media so it can be accessed again at later times without having to call google API to generate qr code images. So this is not a bug it is intended to be like this. Sorry for the confusion with this 🙂 There is no setting to turn it off and also please don’t remove them.
Hi,
Thank you for responding so quickly.
Can you elaborate a bit in which cases it would be necessary to access them again?
I mean, the only thing we do is scan the qr-codes on the tickets at the door and that’s it basically.
After the event is done. Can we then delete them?
Can the path be changed to a new sub-folder under uploads?
Thank you
D. Valck
Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and answer your question. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer!
Hi there, so we use google API to generate the QR Code images and we save those generated images in media so it can be accessed again. These saved images are used anytime you access the ticket from backend or frontend in customer’s my account page.
I havent played too much on subfolders but we are definitely hoping to move those into a more obscure place in the future 🙂
Hi Ashan,
Thanks for your explanation.
I noticed that it is more or less common practice by other plugins to automatically store their info in a sub-folder of uploads.
Would you be so kind to fix that soon? because there are now hundreds of these qr-images amidst our images used for the website.
Do I need to file a change request?
Thank you.
Absolutely D as mentioned it is definitely something I would like to pursue and I just need to find a solution for it. If you come across a solution that in wordpress you can store images in sub folder please share it in here.
Hi Ashan,
My apologies for very late reply.
In my upload folder (and expect in yours too) there is a sub-folder called ‘woocommerce_uploads’ which I see as a nice example for storing your qr-code images. Something like ‘eventon_uploads’ ? 🙂
In some woocommerce plugin files this is referred too as $upload_dir[‘basedir’]
If you look in the following files you will find the text ‘woocommerce_uploads’.
The woocommerce files containing the text “woocommerce_uploads” are:
../wp-content/plugins/woocommerce/includes/wc-product-functions.php
../wp-content/plugins/woocommerce/includes/wc-core-functions.php
../wp-content/plugins/woocommerce/includes/class-wc-install.php
../wp-content/plugins/woocommerce/includes/admin/ class-wc-admin-settings.php
../wp-content/plugins/woocommerce/includes/admin/ class-wc-admin-post-types.php
My php knowledge is very little but maybe you can use it from here.
Wish you well
D. Valck
D thank you very much for sharing this. and I have also been testing uploading files to WP and we might be able to find a solution to upload qr images to a separate folder. I will see what I can do to get this incorporated in the coming updates 🙂
Fantastic Ashan,
It’s a joy working with your products.
With regards,
DV
Thank you DV great to hear that and your comment made my day 🙂
I completely agree with the above, I noticed today over 5,000+ QR Images within the media folder of wordpress – which is okay until you go to attach a image to a post and wait for it to pull through/update.
Is it possible to move images to a sub-folder so they don’t appear within the media gallery? the only other option would be to find something to exclude anything with the title “qr-code” from the media library?
This has only recently started to happen so what was the case before?
Thanks for the message as mentioned above we are hoping to work on a solution that will certainly address this issue 🙂 – the QR codes in media was not saved before it was calling on the google API everytime to load QR Code image.
Yes please.. this is really annoying if you work for feature images for the events and have to scroll for minutes before you find amidst the hundreds of QR codes the photo you were looking for.. Thank you
Hey Max,
Thank you for your feedback, we do take it in consideration and Ashan will for sure figure something out!
Hello Max thank you for your message we are still in the process of making this go into a separate folder. Please stay tune.