Home › 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 5 years, 9 months ago by nmedia.
-
AuthorPosts
-
February 25, 2019 at 8:26 am #10819webmaster@retro-moto.chParticipant
Hi,
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 #10822nmediaKeymasterHi,
I don’t see any File Upload input activated on current link,
February 28, 2019 at 11:16 am #10840robertParticipantMy client has had a customer reporting this also.
Thanks,
- This reply was modified 5 years, 9 months ago by robert.
March 2, 2019 at 6:49 am #10850nmediaKeymasterMarch 2, 2019 at 11:40 am #10859robertParticipantIt 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 #10935robertParticipantIf 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 #10938nmediaKeymasterHi Robert,
thanks for the information, I will update message for sure and it will be available in next version.
-
AuthorPosts
- The topic ‘Error message when end user try to upload image’ is closed to new replies.