upload files in linode bucket using node

can you please let me know how can I upload files from node express server to linode bucket using aws-sdk or something else? Please provide an example of it. Thankyou!

1 Reply

Hi @fahamahassan,

If you are referring to Express JS, this is a framework built on NodeJS.

Therefore the AWS SDK for JavaScript should work just fine*.

Here is a getting started example: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-started-nodejs.html

The only difference is you will need to pass an “endpoint” into the client constructor specifying “https://[location].linodeobjects.com”, where [location] is one of the object storage cluster names:

  • us-east-1 (Newark)
  • eu-central-1 (Frankfurt)
  • ap-south-1 (Singapore)
  • us-southeast-1 (Atlanta)

I’m not a NodeJS developer, so YMMV.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct