Files
warpbox-dev/backend/static/js/40-upload.js
Daniel Legt 6a7590493c
All checks were successful
Build and Publish Docker Image / deploy (push) Successful in 1m58s
refactor(upload): use IncomingFile interface instead of multipart headers
Refactors the upload handler to use the `services.IncomingFile` interface instead of concrete `*multipart.FileHeader` pointers. This decouples the core upload logic from the HTTP multipart implementation, allowing for more flexible file sources.

Changes include:
- Introducing `namedMultipartFile` to adapt multipart headers to the new interface.
- Updating `createOrAppendBox`, `checkUploadPolicy`, and `totalUploadBytes` to accept `IncomingFile`.
- Renaming service calls to `CreateBoxFromIncoming` and `AppendIncomingFiles`.
2026-06-10 18:19:45 +03:00

52 KiB