M2.4.6, v1.2.2: error when trying to save product with the uploaded images.

Created by Esther Nguyen, Modified on Fri, 18 Oct at 10:01 AM by Esther Nguyen

ISSUE:


When we upload custom option images, they are temporarily saved in the media/bss/temp folder before the product is saved. Once the product is saved, these temporary images are automatically deleted, which is expected behavior.


However, there is an issue. If a colleague is working on a different product and saves their product before I save mine (with the uploaded images), my images in the temp folder are also deleted. This results in an error when trying to save my product with the uploaded images.





SOLUTION:


To resolve the issue, please download and replace the following files: 

app/code/Bss/CustomOptionImage/Controller/Adminhtml/Json/Uploader.php

app/code/Bss/CustomOptionImage/Helper/ImageSaving.php 

app/code/Bss/CustomOptionImage/Observer/CleanTempImage.php


If you need any further assistance, please feel free to contact us. We'd be happy to support you!



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article