Pure halves of the upload index: the record a store makes, and what data export shows of it.
Pure halves of the upload index: the record a store makes, and what data export shows of it.
(may-access? upload {:keys [user-id tenant-id admin?]})Whether caller ({:user-id :tenant-id :admin?}) may act on upload: an admin,
its tenant, or, outside any tenant, its uploader. An unknown upload is nobody's.
Whether `caller` ({:user-id :tenant-id :admin?}) may act on `upload`: an admin,
its tenant, or, outside any tenant, its uploader. An unknown upload is nobody's.(subject-owner {:keys [type id]})The owner whose uploads belong to export subject, or nil for a type of
subject that owns none.
The owner whose uploads belong to export `subject`, or nil for a type of subject that owns none.
(upload-record stored owner now)The index record for stored, an IFileStorage/store-file result, stored
by owner ({:user-id :tenant-id}, either may be nil) at now.
The index record for `stored`, an `IFileStorage/store-file` result, stored
by `owner` ({:user-id :tenant-id}, either may be nil) at `now`.(uploads-export uploads)The storage section of a data export. In a zip export each file sits at
storage/<key>.
The storage section of a data export. In a zip export each file sits at `storage/<key>`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |