Een logo uploaden na het verwijderen van het huidige logo zonder tussentijds op te slaan, veroorzaakt een fout

I just wanted to change the logo I had uploaded. So I went to /admin/config/logo, removed the current logo, and tried to upload the new one. It failed: POST https://example.discourse.group/uploads/complete-external-upload 400 (Bad Request)

It works when I scroll down and click submit to save after deleting the old logo before uploading the new one. It also works to drop the new logo without deleting the old one, but I didn’t try that at first because as long as there is a logo in place, the field doesn’t say I can do that.

I also tried uploading a new logo, deleting that, and uploading another one, which also fails:


Okay, actually the upload works. When you delete the old logo, upload a new one, ignore the error, and submit the changes, you will see the new logo. So, what does the error tell me, and why are the buttons disabled afterwards when it magically still works?

3 likes

Thanks for posting this, @Moin.

I just tested this out, and it looks like the error shows when you drag-and-drop and image, but not when you click to upload - if you do that then there’s no issue.

That’s certainly a bug, so w’ell have a look and see what we can do about it.

Thanks!

3 likes

Na verder testen bleek dit probleem slechts af en toe voor te komen, en niet consequent met dezelfde afbeeldingen of iets dergelijks. Dat gezegd hebbende, is dit opgelost als onderdeel van een andere update, en ik kan het niet meer repliceren op enige site.

1 like

Op dit moment kan ik het nog steeds reproduceren op mijn forum, dat ongeveer 15 uur geleden is bijgewerkt. Ik zal het opnieuw proberen na de volgende implementatie.

2 likes

Om dit verder te helpen debuggen:

  1. Gebeurt dit elke keer als u probeert een afbeelding te uploaden met slepen en neerzetten? Gebeurt dit met elke afbeelding die u probeert?
  2. Komen er fouten naar voren in uw console? Zo ja, kunt u daar screenshots van maken en deze hier plaatsen?
  3. Als het consistent gebeurt met één specifieke afbeelding, kunt u die afbeelding hier dan uploaden?

Bedankt!

1 like

So far, it happens every time I try to upload an image with drag-and-drop after deleting the current image without saving in between.
I recorded another video using the pencil sketch default image and the site setting interface instead of the config page. But the issue remains the same on both. Though the save button is much further down on the config page, which is why not saving after deleting is more likely there.

Yes, I don’t think the screenshot reveals much more than what I already mentioned in my first post.

It happens with every image I tried.


This is the one used in the recording above.

2 likes

Oké - bedankt - ik zal hier nog wat meer testen en kijken wat we kunnen uitzoeken.

1 like