Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload / simpleUpload a string #169

Open
LeftPinkie opened this issue Jun 7, 2020 · 1 comment
Open

upload / simpleUpload a string #169

LeftPinkie opened this issue Jun 7, 2020 · 1 comment

Comments

@LeftPinkie
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant