How to upload file in Digitalocean in Spaces

Here are steps how can upload a file in Digitalocean – Spaces.

upload.php

Also, functions are available

  • CreateSpace – Creates a Space.
  • ListSpaces – Lists all spaces owned by you in the region.
  • ChangeSpace – Shorthand for SetSpace – Change your current Space, Region and/or Host
  • SetSpace – Changes your current Space, Region and/or Host.
  • GetSpaceName – Fetches the current Space’s name.
  • DownloadSpaceToDirectory – Downloads the whole Space to a directory.
  • DestroyThisSpace – Deletes the current Space.
  • ListObjects – Lists all objects.
  • DoesObjectExist – Checks whether an object exists.
  • GetObject – Fetches an object’s details.
  • MakePrivate – Makes an object private, (restricted) access.
  • MakePublic –  Makes an object public anyone can access
  • DeleteObject – Deletes an object.
  • DownloadFile – Download a file.
  • UploadDirectory – Uploads all contents of a directory.
  • ListCORS – Lists the CORS policy of the Space.
  • PutCORS –  Updates the CORS policy of the Space.
  • ListSpaceACL – Fetches the ACL (Access Control Lists) of the Space.
  • PutSpaceACL – Updates the ACL (Access Control Lists) of the Space.
  • ListObjectACL –  Lists an object’s ACL (Access Control Lists).
  • PutObjectACL – Updates an object’s ACL (Access Control Lists
  • CreateTemporaryURL – Creates a temporary URL for a file (Mainly for accessing private files)

spaces.php

Leave a Reply

Your email address will not be published. Required fields are marked *