website logo
⌘K
πŸ–οΈIntroduction to hyper cloud
🍎Getting Started
😍What's New
Blueberry Migration Guide
πŸ’ͺWorkshops
Deno Workshops
NodeJS Workshops
⚑Quickstarts
NodeJS Quickstarts
πŸ”ŒAPI Reference (hyper cloud)
🍎Basics
⚑hyper connect
πŸ”‘JWT Auth
πŸ’ΎData API
🏎️Cache API
πŸ”ŽSearch API
πŸ—„οΈStorage API
πŸ€“Queue API
πŸ”“Sign In
⚑Applications
βš™οΈSettings
πŸ”‘App Keys
πŸ‘₯Teams
Switching Between Accounts
Application Services
Application Service Instances
Adding a Queue Service
Adding a Search Service
Subscriptions
πŸ€‘Upgrade
πŸ“•Terminology
Parameters
πŸ’³Billing
Payment and Pricing Terms
πŸ’ΌLegal
Terms of Service
Acceptable Use Policy
Privacy Policy
πŸ•ΆοΈHyper Vision
Docs powered byΒ archbeeΒ 
10min

Upload an Object

POST /{appname}/storage/{bucket}

Adds an object to a storage service bucket using FormData

Parameters

Path Parameters

  • appname - string - the name of your hyper cloud application.
  • bucket - string- the name of your hyper cloud service.

Request Body

When posting unstructured data to the storage service it is best to use a multipart/form-data Content-Type and the form-data should contain a file field. See the examples.

Form Data Fields

  • file - represents the unstructured file for storage
  • path - string - optional - contains additional path structure from bucket root. eg. if path equals directory1/directory2 then the object location will be /storage/bucket/directory1/directory2/hello.txt

Ease with hyper-connect?

Given a stream and filename, hyper-connect will handle creating the FormData on your behalf.

Example

Node.js
|

Responses

Status

Description

Example

201

Created

{"ok": true}

500

Server Error

{"ok": false, "msg": "..."}

Need Help?

You can always reach out to our support team for any additional assistance on slack.

Updated 29 Apr 2022
Did this page help you?
Yes
No
UP NEXT
Get Object
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
POST /{appname}/storage/{bucket}
Parameters
Path Parameters
Request Body
Form Data Fields
Ease with hyper-connect?
Example
Responses
Need Help?