dropbox-php-sdk icon indicating copy to clipboard operation
dropbox-php-sdk copied to clipboard

upload / simpleUpload a string

Open LeftPinkie opened this issue 4 years ago • 1 comments

Per your document (https://kunalvarma05.github.io/dropbox-php-sdk/master/Kunnu/Dropbox/Dropbox.html#method_simpleUpload), it states that Dropbox->upload() and Dropbox->simpleUpload() can take a string as their first parameter:

upload(string|DropboxFile $dropboxFile, string $path, array $params = array()) 

Is this a mistake because when I use a string or variable, I get error message Failed to create DropboxFile instance. Unable to read resource:?

If this is a mistake in the doc, is there a way to upload a string to Dropbox?

LeftPinkie avatar Jun 07 '20 07:06 LeftPinkie

I found a way to create a stream for a variable / string at https://evertpot.com/222/.

LeftPinkie avatar Jun 07 '20 15:06 LeftPinkie