revite icon indicating copy to clipboard operation
revite copied to clipboard

bug: Unable to remove attachment(s) when Network error occurs

Open nyakowint opened this issue 2 years ago • 0 comments

What happened?

If a network error occurs while you are uploading an attachment to autumn, the client will show "Network error." and not allow you to remove the attachment (It does get removed when switching channels, however) I've only tested on Desktop and Chromium although it is probably a universal issue

image

Branch

Production (app.revolt.chat)

Commit hash

f8e67af

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge, Other (please specify in the "What happened" form)

Relevant log output

First encounter (I triggered the bug via disconnecting internet in my other tests)

Access to XMLHttpRequest at 'https://autumn.revolt.chat/attachments' from origin 'https://app.revolt.chat' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Desktop

  • [ ] Yes, this bug is specific to Revolt Desktop and is not an issue with Revolt Desktop itself.

PWA

  • [ ] Yes, this bug is specific to the PWA.

nyakowint avatar May 18 '22 21:05 nyakowint