dropbox-php-sdk
dropbox-php-sdk copied to clipboard
upload / simpleUpload a string
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?
I found a way to create a stream for a variable / string at https://evertpot.com/222/.