Join Joseph LeBlanc for an in-depth discussion in this video Retrieving files, part of Up and Running with Cloud Storage APIs.
After storing files in a bucket, you'll eventually want to download them again.…Lets add a route where we can get specific files out of a bucket.…I'm going to the exercise files and loading up chapter two, video five, start,…and app. I'm going to copy this fold into server.…Now, let's have a look at this app, Go to views and list.jade.…The list view is now linking to individual files.…On line 9, we have an anchor tag. This anchor tag is pointing to a file route.…
We don't currently have this route in our application, but we'll add it in a moment.…It's also specifying a name parameter. We're going to use this name parameter, to…get the file from s3. And then finally, we're reading the key…property of the file object. We're also using the key property as the…text for the anchor. Now, let's go to index.js and add this…file route. I'm going to line 18 and making a little…bit of room. First, I'm typing app.get then I'm passing…/file as the first argument. The second argument is going to be a…callback function. This callback function is called with the…
- Why use cloud storage?
- Granting access to Amazon S3 buckets
- Displaying bucket contents
- Downloading files immediately
- Creating a Dropbox application
- Finding, downloading, and uploading files
Skill Level Beginner
1. Cloud Storage Overview
2. Accessing Amazon S3 Buckets via REST
3. Other Container-Based Services
4. Creating Dropbox Apps
5. Other App-Driven Services
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.