Skip to content

digitalocean/sample-functions-file-upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This is a sample of how to upload files to DigitalOcean Spaces using deploys a Functions and Static Site component on App Platform.

Note: Following these steps may result in charges for the use of DigitalOcean services.

Requirements

Spaces Bucket

When deploying the App, these environment variables are required in the Functions component.

SPACES_ENDPOINT
SPACES_NAME
SPACES_KEY
SPACES_SECRET

Deploying the App

Click this button to deploy the app to the DigitalOcean App Platform. If you are not logged in, you will be prompted to log in with your DigitalOcean account.

Deploy to DigitalOcean

Using this button disables the ability to automatically re-deploy your app when pushing to a branch or tag in your repository as you are using this repo directly.

About

Uses DigitalOcean Functions to upload a file to Spaces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.1%
  • HTML 32.7%
  • Shell 3.2%