Join Joseph LeBlanc for an in-depth discussion in this video Displaying bucket contents, part of Up and Running with Cloud Storage APIs.
As a bucket fills with files, you'll want to get a list of everything that's there.…Let's add a route where the bucket contents can be listed.…Go to the exercise files and then open up chapter 2.…Go to video four and the start folder, and then copy app into the server folder.…Now, let's edit the server. First, go to app views, then load list.jade.…On line one, we're telling JADE to include the layout.…On line seven of the layout, there's a block named content.…
We're defining what's going into content here on line three.…We have a div with a class of container, a header and then an unordered list.…The on line seven, we begin a loop. We're expecting contents to be in an…array, and then we're reiterating over each element in that array.…Each element becomes the variable file, and then on line eight we're outputting…the key property of each file. Now, let's go to index.js.…Let's add a route that will list all of the contents of the bucket.…
I've made some space on line 19, and now I'm going to add app.get.…
- 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.