Join Joseph LeBlanc for an in-depth discussion in this video Solution: Searching thumbnails, part of Up and Running with Cloud Storage APIs.
So, here's my solution to the challenge. Once I load up the server, it asks me to…authenticate with Dropbox. Once I allow the Dropbox application, I…can now go to a new route. It's called Small_pizza.…And then a small thumbnail of the pizza image appears.…Let's take a look at the code that makes this happen.…First, I created a route called small pizza.…It takes a callback function that takes a request and a response object.…Next, I call the search method of the client object.…I started a search at the root folder and then used the term pizza.…
Then I supplied a callback function to receive the status and reply.…Now, here's a part that tripped me up. I referred back to the JADE layout to…remind myself of the response format structure.…However the search method returns an array out right instead of an array that's a…member of the contents property. I assume that a contents property responds…the first time around and it didn't work. So, then I used the first element of the…reply array and passed it's path property into the thumbnails property.…
- 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.