We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
kentdwheeler
6 years agoExplorer | Level 4
Re: Upload PDF files/proper encoding
I am having the same problem. I am also trying to upload a pdf that has editable fields, but I also tested it with a blank pdf and found it also would not work. below is a copy of my code. (very simi...
Greg-DB
Dropbox Community Moderator
6 years agoA 'path/conflict/folder' error like this indicates that the upload failed because there is already a folder at the specified path (not a file). The "overwrite" mode will only overwrite files, not folders.
When uploading a file, e.g., using files_upload, you need to specify the whole path where you want to put the uploaded file, including both any parent folders as well as the filename and extension.
So, for example, the value you pass to the "path" parameter should look like "/folder/file.ext", not just "/folder".
In your code, you're passing in a variable named "folder" as that "path" parameter. The value of that variable isn't shown, but based on the name it sounds like it's just the folder path, not the entire desired file path. If that's so, you'll need to update your code to construct the entire file path and specify that when uploading.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!