Space SDK Package

Space SDK Package

  • Users
  • Storage
  • Space Docs

@spacehq/sdk > AddItemFile

AddItemFile interface

Signature:

export interface AddItemFile 

Properties

PropertyTypeDescription
dataAddItemDataType
mimeTypestringMimeType of the file being added. This value can be retrieved when opening the file later one.
pathstringpath in the bucket where the file should be uploaded. filename would be determined by the last segment in the path so path folder/a_file.txt would have the name a_file.txt
progress?(bytesRead?: number) => void(Optional) progress callback if provided will be called with bytes written to remote while uploading the file.
  • AddItemFile interface
  • Properties
Space SDK Package
Docs
Getting StartedUsersStorage
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @spacestorage