Palbase Storage · API
/storage/signed/{bucket}/{path}Write through a signed URL
What an upload signature grants: the one object it names, no larger than its ceiling, of its content types, belonging to its owner. If-None-Match: * only creates. Emits file.uploaded.
Called by .
Path
bucketstring · requiredThe bucket's name: a lowercase letter, then lowercase letters, digits and -, 2 to 63 characters.pathstring · requiredThe object's path as ONE percent-encoded segment: a/b.jpg is a%2Fb.jpg. Segments are separated by /, none empty, . or ..; 1 to 1024 bytes of UTF-8.Query
bstring · requiredThe bucket the signature grants (from the signed URL).pstring · requiredThe object path the signature grants (from the signed URL).estring · requiredWhen the signature expires, Unix seconds (from the signed URL).sigstring · requiredThe signature (from the signed URL). Every parameter of the URL is covered by it.ustring · requiredMarks an upload grant (from the signed URL).maxstring · requiredThe largest object the upload may be, in bytes (from the signed URL).mimestring · optionalThe content types the upload may be (from the signed URL).ostring · optionalThe user the uploaded object will belong to (from the signed URL).Headers
If-None-Match"*" · optional* to create only: an object already at the path is refused with 412.X-Checksum-Sha256string · optionalThe bytes' sha256, hex: bytes that do not match are refused and nothing is kept.curl -X PUT "https://<your-ref>.palbase.studio/storage/signed/<bucket>/<path>" \
-H "content-type: */*" \
--data-binary @fileResponses
200The object, replaced
201The object, created
400The request is malformed: a field, a path or a parameter is wrong
403Not the project's secret key; or, on a credential-less route, a private object or a link that is not valid for it
404No such bucket, object or variant
412If-None-Match: * and an object is already at the path
413The object is larger than the bucket, or the link, takes
415The bucket, or the link, does not take the object's content type (sniffed from its bytes)
422A picture this storage cannot decode, or an Idempotency-Key sent with a different request
429The project's request rate, or its storage quota for the period, is used up — or, slowed for its month's traffic, it has as many downloads under way as are paced at once; Retry-After says when to try again
503The platform could not answer now; retrying is safe (Retry-After)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation PutSignedObject of storage's contract.