Open BartHageman opened 10 months ago
Issue appears to be a happening in a few places:
Apparently the "file.path" value in the file can be empty. If this is the case, the file should probably be skipped. If we patch it to do so, we move onto the 'text/html' datatransfer, which works as expected.
Then this section, we filter out URLs without image extensions and perform the check. However, our obtained URL from twitter comes in a different format:
https://pbs.twimg.com/media/[identifier]?format=jpg&name=medium
, and gets missed. So we move to fetch it and check the type of the resulting blob.
Unfortunately, by the looks of things the blob returned has type basic
, and is therefore not recognized.
Haven't gotten to the bottom of this yet, but it's a start.
Incidentally, if we apply a 'naive' fix of removing the dot from
else if (IMG_EXTENSIONS.some((ext) => item.toLowerCase().includes(`.${ext}`))) {
Then the image gets pulled in as expected. However, I feel like this is not ideal.
Describe the bug Dragging and dropping an image from a chromium based browser (Tested on Brave and MS Edge) sometimes creates an undeletable file, created with a number in the following format: ' 1.' ,' 2.', '3.'
Directory listing:
Adding a new file and incrementing with each drag and drop. When attempting to delete these files using file explorer, it claims the files cannot be found (even though it is still displaying them. Likely because of it's abnormal naming scheme (no extension after the period). Files must be deleted using the command line. Firefox does not seem to produce this behavior, and dragging and dropping works as expected.
To Reproduce Steps to reproduce the behavior:
Expected behavior The image that was dragged and dropped should be added to the folder.
Screenshots![image](https://github.com/allusion-app/Allusion/assets/17185514/d6a86c9e-edf3-42a3-8726-b07c490d32c9)
Allusion version
Desktop OS