Skip to main content

Module upload_picker

Module upload_picker 

Source
Expand description

Manual upload entry point.

Opens a multi-file picker, hashes each selection on a blocking worker, and enqueues a FileTask on the shared QueueManager. The Upload header-bar button in the library window invokes pick_and_upload; the same flow is used for both library and album scopes โ€” the caller resolves the album.

Functionsยง

build_file_task ๐Ÿ”’
Build a FileTask for a single path, computing checksum and resolving sidecar.
pick_and_upload
Open the OS file picker and enqueue every chosen file for upload.
spawn_enqueue ๐Ÿ”’
spawn_enqueue_with_callback ๐Ÿ”’
Enqueue files for upload and invoke on_complete(queued, skipped) on the main context when all files have been hashed and enqueued.