Welcome to our Support Portal › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Error message when end user try to upload image
Tagged: error, file upload, permission, security, upload
- This topic has 6 replies, 3 voices, and was last updated 1 year, 10 months ago by
nmedia.
-
AuthorPosts
-
February 25, 2019 at 8:26 am #10819
webmaster@retro-moto.ch
ParticipantHi,
In trying to upload pictures with the PPOM – End users are getting the “Due to security issue, you cannot upload file, please try again.”
Page URL. https://www.retro-moto.ch/produit/inscription-moto/
FIles are in jpg format and lower than 500KB.
February 25, 2019 at 4:51 pm #10822nmedia
KeymasterHi,
I don’t see any File Upload input activated on current link,
February 28, 2019 at 11:16 am #10840robert
ParticipantMy client has had a customer reporting this also.
Thanks,
-
This reply was modified 1 year, 11 months ago by
robert.
March 2, 2019 at 6:49 am #10850nmedia
KeymasterMarch 2, 2019 at 11:40 am #10859robert
ParticipantIt works for me too, it works for my client. It also works for most other customers. But if one customer has reported the issue, I’m sure there are others that must be experiencing the error, such as your other customer, above, who started this thread.
The customer in question was using Chrome on Android.
March 3, 2019 at 5:21 pm #10935robert
ParticipantIf you look through the code, you can see that to trigger that error message, the wp_verify_nonce has to return false.
So, you can re-create the issue by opening the page with the file upload on, leave it for 12-24 hours and then try and upload a file. Although these are unlikely conditions, it would seem that this can and does happen; a customer visits your site, views the product, keeps the browser / tab open and then resumes the following day.
It’s not a bug, as you would want the nonces to expire after a given time, but the error message could be changed to be more informative.
The current message reads:
‘Due to security issue, you cannot upload file, please try again.’
The customer cannot try again, as the product attributes, including the file uploader, are then disabled. Not only that, the nonce won’t get regenerated until the page is refreshed.
So, I would suggest that the error message is updated to read something like:
‘You cannot upload the file at this time, please refresh the page and try again. Note that your current option choices will be reset’
It would still cause annoyance to the customer by having to refresh the page and potentially set more a product options, but at least they would have the opportunity of trying again rather than leaving them without a way to continue.
March 5, 2019 at 1:59 pm #10938nmedia
KeymasterHi Robert,
thanks for the information, I will update message for sure and it will be available in next version.
-
This reply was modified 1 year, 11 months ago by
-
AuthorPosts
- The topic ‘Error message when end user try to upload image’ is closed to new replies.