A folder dropped on a chat is queued for sending and fails with a raw error #114

Open
opened 2026-11-13 00:46:28 +00:00 by bmt · 1 comment
Member

build: anotherim-js 0.8.5

A folder dragged onto a chat is taken as a file and the send starts. It fails, and the bubble shows the engine's error text with Upload failed, Retry and Dismiss under it

steps:

  1. Drag a folder from Explorer onto an open chat

expected: the folder is not taken, and the app says at once that a folder cannot be sent
actual: the send starts and fails with "A requested file or directory could not be found at the time an operation was processed"

build: anotherim-js 0.8.5 A folder dragged onto a chat is taken as a file and the send starts. It fails, and the bubble shows the engine's error text with Upload failed, Retry and Dismiss under it steps: 1. Drag a folder from Explorer onto an open chat expected: the folder is not taken, and the app says at once that a folder cannot be sent actual: the send starts and fails with "A requested file or directory could not be found at the time an operation was processed"
ann referenced this issue from a commit 2026-11-16 15:17:09 +00:00
A folder dropped on a chat is refused at once with "Folders can't be sent", never queued (forge #114: a folder from Explorer was taken as a file, and its upload failed with WebView2's "A requested file or directory could not be found at the time an operation was processed"). Every way a drop arrives: the HTML5 drop (Windows' WebView2, macOS's WebKit, the browser, the Android WebView) hands a folder over in dataTransfer.files as a File whose bytes cannot be read, so file-drop.ts gains droppedFiles, which tells folders apart by the drop's entries (webkitGetAsEntry, read while the drop lasts; with no entries, or none lining up, every file is taken as before); the chat view toasts for the folders and attaches the files beside them, and the composer leaves a drop with a folder in it to the chat view instead of attaching it. On Linux the shell takes drops itself and already noted regular files alone, so a folder vanished without a word: its file-drop event now counts the folders it left out (folders, files.rs) and the chat view says the same. An Android share never queues one: ShareInbox skips what it cannot open and counts it. Behind all of these, an upload whose file cannot be read (a DOMException NotFoundError or NotReadableError: a folder that got through, a file gone or locked since it was picked) now reads "Could not read {name}" on its row instead of the engine's text (store.ts uploadError, on all three upload paths). One new string in all five catalogues. Tests (failing before): file-drop, droppedFiles; a folder on the chat refused with the toast and nothing queued, a file beside it attached; a folder on the composer left to the chat; a shell drop with folders: 1 toasted and nothing read; uploadError names the file; app_tests (broadway glue) asserts the shell's folders count and that a folder is never readable (compiled with desktop,fake-tacky, not run here).
ann referenced this issue from a commit 2026-11-16 15:17:09 +00:00
0.8.6, on libtacky v1.2.14 (add7174f): version 0.8.6 (versionCode 8021) in tauri.conf.json, Cargo.toml/lock and ui/package.json/lock, the CHANGELOG's 0.8.6 entry (the Unreleased lines with the rest of the round: large files never through the page #112/#113, non-Latin file names #39, a declined direct file offered again #38, folders refused #114, the built-in tags and tags per account #108, #107, #109, #110, #104, #105, the Telegram link that survives leaving the app, gateway uploads retried through our own server and scheduled files' slots, window attention for a minimised window and for our own dialogs, #106, #115, #111, Always send files directly, the libtacky version line), the metainfo release and the README's version and figures. Merged for it since c1790c5c: TL fix/r12-tg-link-resume (abb787cd), TU fix/r12-tg-uploads (1090ef90), TV fix/r12-tacky-version (124a2051), FN fix/r12-file-names (c4a2e989) and the pin d2660975. Gate on 4706c70a (this code but the version strings): make check STRICT=1 (2,572 strings in five languages, the ui-copy guard), build, test-ui 472 files 5,580 passed 9 skipped, test-shell 455 passed, test-worker, release-check (pins + RustSec audit), the Windows cargo check, webkit-smoke 11,017 checks 0 failed, coverage-ui 97.7% lines (72,600 of 74,317), coverage-android 94.5% (4,577 of 4,845; free 645 and gms 648 tests passed), coverage-shell-all 94.9% (12,852 of 13,545), coverage-worker 895/895; the window attention's other-own-windows path probed in the real Linux shell (app_tests under broadway, the real capabilities): from the main window getAllWindows listed main and a call window, isFocused, isMinimized and a listen on the other window's focus were allowed.
Owner

Fixed in 0.8.6. A folder dropped on a chat is no longer taken: the app says "Folders can't be sent" at once,
and any files dropped with it are still attached. If a file cannot be read later, the row says
"Could not read " instead of the system's error text.

Fixed in [0.8.6](https://dev.another.im/another-im/anotherim-js/releases/tag/v0.8.6). A folder dropped on a chat is no longer taken: the app says "Folders can't be sent" at once, and any files dropped with it are still attached. If a file cannot be read later, the row says "Could not read <name>" instead of the system's error text.
ann referenced this issue from a commit 2026-11-16 16:21:53 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
another-im/anotherim-js#114
No description provided.