Chromium Browsers incorrectly handling dropped files from Nautilus

descriptionStandard

For a while now I’ve had a strange issue where files such as images when dragged from the Nautilus file manager to the browser. The event doesn’t appear to handle the file correctly. This issue seemingly impacts every instance of file upload that support drag and drop that I’ve encountered.

I’ve not tested this on everything; this impacts my laptop running Fedora Linux 40 (Workstation Edition).

Working on a custom project that is also using file upload with drag and drop support; I can see that the dragstart event triggers but the file object is not handled.

It appears that changing the “Preferred Ozone platform” from “auto” to “Wayland” specifically fixed the issue in my instance: chrome://flags/#ozone-platform-hint