Welcome to our Support Portal › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Error message when end user try to upload image
February 25, 2019 at 8:26 am #email@example.comParticipant
In trying to upload pictures with the PPOM – End users are getting the “Due to security issue, you cannot upload file, please try again.”
FIles are in jpg format and lower than 500KB.February 25, 2019 at 4:51 pm #10822
I don’t see any File Upload input activated on current link,February 28, 2019 at 11:16 am #10840March 2, 2019 at 6:49 am #10850
I try to upload on your site given above and it’s working just fine see:March 2, 2019 at 11:40 am #10859
It 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 #10935
If 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 #10938
thanks for the information, I will update message for sure and it will be available in next version.
- The topic ‘Error message when end user try to upload image’ is closed to new replies.