현재 로고를 삭제한 후 제출 없이 새 로고를 업로드하면 오류가 발생합니다

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개의 좋아요

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개의 좋아요

추가 테스트를 해본 결과, 이 문제는 특정 이미지나 다른 요소와 관련하여 일관되게 발생하는 것이 아니라 간헐적으로만 발생하는 것으로 보였습니다. 다만, 이 문제는 다른 업데이트의 일부로 해결되었으며, 현재 어떤 사이트에서도 이를 재현할 수 없습니다.

1개의 좋아요

현재 15시간 전에 업데이트된 내 포럼에서 여전히 재현할 수 있습니다. 다음 배포 후 다시 시도해 보겠습니다.

2개의 좋아요

추가 디버깅을 위해 다음 사항을 확인해 주시겠어요?

  1. 드래그 앤 드롭으로 이미지를 업로드할 때마다 이런 문제가 발생합니까? 어떤 이미지를 사용해도 발생합니까?
  2. 콘솔에 오류가 표시됩니까? 그렇다면 해당 오류를 스크린샷으로 찍어서 여기에 올려 주시겠어요?
  3. 특정 이미지에서만 지속적으로 문제가 발생한다면, 해당 이미지를 여기에 업로드해 주시겠어요?

감사합니다!

1개의 좋아요

지금까지, 현재 이미지를 삭제한 후 저장하지 않은 상태에서 드래그 앤 드롭으로 이미지를 업로드하려고 할 때마다 이런 일이 발생했습니다.

설정 페이지 대신 연필 스케치 기본 이미지와 사이트 설정 인터페이스를 사용하여 또 다른 영상을 녹화했습니다. 하지만 두 경우 모두 문제가 동일하게 발생합니다. 설정 페이지에서는 저장 버튼이 훨씬 아래에 위치해 있어 삭제 후 저장하지 않은 상태가 더 흔합니다.

네, 스크린샷에는 첫 번째 게시물에서 이미 언급한 것보다 더 많은 정보가 드러나지 않는 것 같습니다.

시도한 모든 이미지에서 발생합니다.


위 녹화에서 사용된 이미지입니다.

2개의 좋아요

네, 감사합니다. 더 테스트를 해보고 여기서 어떤 해결책을 찾을 수 있을지 확인해 보겠습니다.

1개의 좋아요