One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
vishruti mehta
3 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.
- Greg-DB
Dropbox Staff
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 mehtaExplorer | 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-DB
Dropbox Staff
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.5,950 PostsLatest Activity: 2 days ago
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 or Facebook.
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!