Skip to main content

Hi, I’m trying to create a file request for an Uploads folder lwith a user’s email as the folder name such as Uploads/joe@joe.com

I have Zaps set up as

1. Gravity Forms Submission

2. Create Dropbox Folder -- Uploads/Email with email from Form in #1​​​​​​

3 Create File Request (Custom Action) Dropbox - i just want to create a link for user to submit images houses in the Folder generated in #2. 

When i test #3 i’m getting a 400 error with no data submitted and no body...I can’t figure out the issue:

 

here’s JSON from test:

{
    "result": {
        "request": {
            "method": "POST",
            "url": "https://api.dropboxapi.com/2/file_requests/create",
            "querystring": null,
            "headers": {
                "Content-Type": "application/json"
            },
            "body": "{\"title\":\"Submit Your Images\",\"destination\":\"Uploads/joe@joe.com\",\"open\":\"{{open}}\",\"deadline\":{\"deadline\":\"{{deadline}}\",\"allow_late_uploads\":\"{{allow_late_uploads}}\"}}",
            "data": {
                "title": "Submit Your Images",
                "destination": "Uploads/joe@joe.com",
                "open": "{{open}}",
                "deadline": {
                    "deadline": "{{deadline}}",
                    "allow_late_uploads": "{{allow_late_uploads}}"
                }
            }
        },
        "response": {
            "status": 400,
            "headers": {},
            "body": "null",
            "data": null
        }
    }
}

Hi @ChrisAVC 

Dropbox API endpoint docs to reference:

https://www.dropbox.com/developers/documentation/http/documentation#file_requests-create

 

Try adding a / before Uploads so it becomes: /Uploads/...

 

destination

String(pattern="/(.|(\r\n])*")

The path of the folder in the Dropbox where uploaded files will be sent.

For apps with the app folder permission, this will be relative to the app folder.


@ChrisAVC 

I got it to work using the Dropbox API Request

 

 


Thanks Troy, i got it to work with this API call, for some reason that other Dropbox request action doesn’t want to work correctly.  Much appreciated.


@ChrisAVC 

  1. Edit the Zap
  2. Go to the Zap step
  3. Go to the tab: App & Event
  4. Search/Select the new event from the dropdown list
  5. Configure the step
  6. Test the step
  7. Publish the Zap

 


Hi @ChrisAVC ,
 
We just wanted to see how everything is going with your Zap. Did Troy's recommendation get the job done? Feel free to reach out if you need further assistance with your Zap. We're glad to address any concerns and assist you.
 
We're looking forward to your response.