-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Photo Drag & Drop causes photo to be uploaded 3 times #2784
Comments
@teolemon, I've noticed the same thing on couple of my products, but the reason is different. Here's an example The issue happened after I opened "Edit a product" Activity on Android application and pushed on the product picture. Pushing opened a dialog for cropping image, and confirming the cropping (even if you don't change image borders) creates a new file, and that's how duplicated files start to appear. I can send a screenshot if needed. |
Confirmed @teolemon 's bug. It happens only with drag and drop, which also seems to cause other issues like selecting some of those images for the new_lc language... 10 janvier 2020 à 12:24:48 CET - stephane Images sélectionnées (Ajout : ingredients_new_lc) - new image ingredients_new_lc : 5.16 - voir Probably some weird javascript bug with drag and drop + the file upload library. |
Can someone explain where is the bug exactly please, because I don't know where to drop the image Because as its been sometime I stopped to watch the repo because of some reasons that has nothing to do with it and I just follow the javascript channel on slack in case there is bug, this one for instance So, I don't remember haveing to upload an image with drag and drop from that time and when I connect to the site it displays the same interface as a while before |
@nazimboudeffa the interface has not changed, but it is possible to drag and drop images on the upload image button. Some people use it even though it is not advertised. |
@stephanegigandet I just have uploaded an image and it didn't hapened maybe it's not on this button ? When does it happen @teolemon ? |
In that case, that was a product without barcode |
Stale issue message |
In my case it is often way more than 3 times. For sure it happens by drag and dropping, but if I'm not wrong it also happened by trying with the button "add an image". in this case it has been uploaded 7 times. The unconveniet thing is that when I try to delete some of them, it deletes more photos than selected, even all of them. And when it happens it's a problem because |
This just happened for me as well (but 7 times, in my case!), on https://world.openfoodfacts.org/product/8713305815805/tea-lemon-citrus-becky-s - Firefox 119.0 (64-bit) on NixOS 23.05.4853.d4b5a67bbe9e. I indeed dragged a photo from my photo viewer (Gwenview) onto the "Add a picture" button. |
I think this is a bug related to jqueryfileupload. Relevant code is in html/js/product-multilingual.js ( |
What
Part of
Screenshot
The text was updated successfully, but these errors were encountered: