Skip to content
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

Drag+Dropping an image to upload not implimented and erases your edits without prompt #1711

Open
skeddles opened this issue Dec 31, 2024 · 0 comments
Labels

Comments

@skeddles
Copy link

skeddles commented Dec 31, 2024

Describe the bug
If you try to drag and drop an image to a pages description, it will navigate the page to the local url of the image - as is the default browser behavior, instead of uploading the image.

It happens even if:

  • you open the image upload dialog by clicking the image button the editor
  • you drag the image directly onto the button (this usually works with default <input type="file" /> elements)

This is problem because:

  1. It's an expected feature nowadays
  2. there is nothing stopping the page navigating away, and when that happens you instantly lose any edits you made
  3. the expected default behavior of file uploading elements has been circumvented

This is not just a feature request, it resulted in me losing a lot of work on my description when the page navigated away without saving my edits.

To Reproduce
Create / edit a games post, drag and drop an image onto the page

Expected behavior
The editor uploads the dragged in image, or at the very least shows a confirmation when navigating away from the edit project page when you have unsaved edits.

Screenshots

firefox_2024-12-31_10-14-27

Desktop (please complete the following information):

  • OS: windows 10
  • Browser: firefox
  • Version 133
@skeddles skeddles added the bug label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant