0
votes

I want to upload file that I am generating in my app. It looks like I can upload file if I will provide path to the file, or url where the file is, but I have only content of the file. Is there a way I can upload that content dropbox ? I am using third party php sdk

1
You are expected to try to write the code yourself. After doing more research if you have a problem post what you've tried with a clear explanation of what isn't working and provide a Minimal, Complete, and Verifiable example. Read How to Ask a good question. Be sure to take the tour and read this. - Jay Blanchard
I haven't tried this myself, but it looks like in that library, to upload a file you supply a DropboxFile object, and you can create a DropboxFile object from a resource using DropboxFile.createByStream. - Greg

1 Answers

0
votes

I solved this by creating temporary file that will be uploaded and then deleted.