cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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

Nickolas S.
New member | Level 1

Since Wufoo only have Top level folder integration...
It just occured to me: Can I also grab the content of another folder, NOT located under the Apps folder?

Greg-DB
Dropbox Staff

I'm not too familiar with the Wufoo Dropbox integration itself, but my understanding is that it accepts files uploaded to your form and puts them in your Dropbox. It sounds like you then want to get those files from your Dropbox and display them on your site in a mosaic. This would certainly be possible using the Core API, which enables API apps to retrieve files from Dropbox accounts from any folder. Since you're using PHP, we recommend using the official PHP Core SDK. We don't have any samples already coded in PHP that do exactly that, but you can get started with the following resources:

https://www.dropbox.com/developers/core/sdks/php
https://www.dropbox.com/developers/core/start/php
http://dropbox.github.io/dropbox-sdk-php/api-docs/v1.1.x/

Nickolas S.
New member | Level 1

How can I change the target folder for the retrieval of users' uploaded photos?
The only thing I did so far was manage to skip the oAuth process by hard-coding the accesstoken. Upon refresh my PHP file, it reuploads the "working-draft.txt" files.

I'll get to reading those docs... but not much "script example" are shown.

Greg-DB
Dropbox Staff

What making an API call, e.g., using getFile, you can specify the full path to the desired file. E.g., from the PHP Core SDK tutorial, I might change the getFile line to:

$fileMetadata = $dbxClient->getFile("/Form1/image.jpg", $f);

In this case, I'm downloading image.jpg from the Form1 folder.

Nickolas S.
New member | Level 1

I can't seem to be able to "list" the files of a particular folder located on the Root of my dropbox account.
The Path is Valid, but perhaps my App doesn't allow access to this part of my account. How can I fix this?

Greg-DB
Dropbox Staff

I'd need to see the error or output to say with more confidence, but it sounds like your app is registered for a more restrictive permission than you need. (E.g., maybe you registered for "app folder" when you need to access other files outside the app folder.) You can find more information on the different app permissions here:

https://www.dropbox.com/developers/reference/devguide#app-permissions

If you need to register for a different permission, you can do so here:

https://www.dropbox.com/developers/apps/create

Nickolas S.
New member | Level 1

In fact, my Wufoo uploaded files are outside of the App folder. Do I need a Full DropBox access (All file type checkbox) or the Specific File types one?

Greg-DB
Dropbox Staff

Either full or file type access would allow your app access to files outside an app folder, so whichever you prefer.

Nickolas S.
New member | Level 1

Great!
I managed to list all the images of my wufoo upload folder into PHP...

Do I have to specifically download every file to my own server or can I directly link to those?

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?