Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
vishruti mehta
4 years agoExplorer | Level 3
Dropbox api to create and write file
Hello sir,
I want a dropbox api php sdk that create and write file directly to dropbox without localpath.
4 Replies
- Greg-DB4 years ago
Dropbox Community Moderator
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation and tutorials here.
Dropbox doesn't offer resources or an official SDK for PHP in particular, but you can use a third party library, or you can call the HTTPS endpoints themselves (such as the upload endpoint that Здравко linked to) using whatever HTTPS client you prefer. - vishruti mehta4 years agoExplorer | Level 3
I need a way using an api where I send file data, name, size and content type and it will create file directly in Dropbox folder path.
Upload method will upload local file directly in dropbox but I dont want that method to upload ready file. - Greg-DB4 years ago
Dropbox Community Moderator
I'm not sure I understand your message. I don't know what you mean when you say you "dont want that method to upload ready file".
Anyway, the upload functionality discussed earlier does allow you to upload file data of a particular name, size, and type directly to Dropbox. Exactly where you get the data is up to you. You can read it from memory or the filesystem, or generate it on demand. Regardless of the source, to upload it, you would supply it in the request body of the upload call.
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!