cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wufoo -> Dropbox -> Webapp - How to get user uploaded files from the directory in a gallery montage?

Wufoo -> Dropbox -> Webapp - How to get user uploaded files from the directory in a gallery montage?

Nickolas S.
New member | Level 1

Greetings

I'm using Wufoo (a form design app - basiclly a form) so user can upload their photo into the form. Those pictures are stored in Dropbox.

I want my website (a PHP file) to be able to get those images, crop them and display them in a nice format (some mosaic gallery of the photos). User would then be able to see the other user-uploaded photo...

Is there already something coded for that? I would need a little help on getting that to work.

Thanks!

Regards,
Nickolas Simard

12 Replies 12

Greg-DB
Dropbox Staff

That's one way, or you can use the createTemporaryDirectLink method to get a temporary link to the file contents without downloading the contents to your server itself:

http://dropbox.github.io/dropbox-sdk-php/api-docs/v1.1.x/class-Dropbox.Client.html#_createTemporaryD...

Nickolas S.
New member | Level 1

That class won't work well, since the link to the file would expire and would need to be generated again (which would require the script to parse all images again for a fresh link).
What is the timeout of that link? If it's long enough, perhaps I could make the link generation script run only once per timeout?

Nickolas S.
New member | Level 1

Found the timeout info: https://www.dropbox.com/developers/core/docs#media
4 hours.
It's also not recommended to use those to display image directly to browser...

I'll resort to downloading the files and also the thumbnail (getThumbnail) to save the thumb generation on my server's side. :slightly_smiling_face:

Now I gotta get some caching system done...

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Nickolas S. New member | Level 1
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?