Commit ff1109a
committed
Add drag-and-drop image upload & quarantine
Add support for uploading images via drag-and-drop and bulk form uploads and handle unreadable images by quarantining them. Backend: new endpoints for single and bulk uploads (/api/local/sessions/{id}/images/upload and /bulk-upload), session notifications endpoint, CacheStore.delete_dataset_manifest_images, upload helpers (sanitize, temp write, chunked reads), quarantine/move-to-not_valid logic, InvalidSessionImageError, and integration into fingerprint warmup/duplicate search flows. Frontend: drag-and-drop overlay, handlers, batching, upload progress UI, new API types and upload functions, notification polling, and updates to deletion flow to use summary responses. Also add CSS for the drop overlay and add python-multipart to requirements for multipart uploads.1 parent 3770019 commit ff1109a
6 files changed
Lines changed: 1335 additions & 64 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
514 | 561 | | |
515 | 562 | | |
516 | 563 | | |
| |||
0 commit comments