Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hello YAL! Big fan of your work! Do you think it would be possible to get the filename/path before dropping the file into the window, while it's still being held? I would like to check the file extension for visual purposes, i.e. changing the cursor effect if it's an invalid filetype. Thanks for everything you do!

There’s already a file_drag_enter event

I appreciate the response, but from what I can tell file_drag_enter doesn't return the filepath. The only event I can see from your docs that returns filepaths is the file_drop event. If I try to use the filepath it returns as undefined.

I hadn't considered how it would be handled if multiple files are being held, though; I can understand if that complicates things too much.

(1 edit)

Added those, and you may decide for yourself what status should be shown if only some of the dragged items are acceptable.