diff options
| author | pi coding agent <pi@localhost> | 2026-10-22 20:18:02 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-22 15:51:01 -0500 |
| commit | a46001d7d184baf4c5021e7de0adeec0f7d4f412 (patch) | |
| tree | f5664ce5a60555e2b3041385a633c277215fde4b /scripts | |
| parent | f33e8d64b735141f31c4cdc501f4998013d61e30 (diff) | |
| download | gn-uploader-a46001d7d184baf4c5021e7de0adeec0f7d4f412.tar.gz | |
Add a generic uploaded-file resolver to uploader.files
Add `resolve_uploaded_file(form, files, upload_dir, fieldname, hashed=True)` to `uploader.files`. It resolves either a chunked/resumable upload (the JSON blob produced by the resumable upload endpoint) or a direct multipart upload, returning `Right((path, original_name))` or `Left(message)`. This is generic: the only per-caller input is the form field name. It is the consumer counterpart of the resumable upload contract already implemented in `uploader.files.views`.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
