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 with Url #61

Closed
dafinley opened this issue Jul 19, 2012 · 2 comments
Closed

Upload with Url #61

dafinley opened this issue Jul 19, 2012 · 2 comments
Assignees
Labels

Comments

@dafinley
Copy link

Is there a way to upload a photo with a url that is not on the local hardrive? For example facebook.com/favicon.ico <-- It is a url that is web accessible.

@ghost ghost assigned themattharris Jul 23, 2012
@themattharris
Copy link
Owner

hey,
tmhOAuth wraps libcurl and uses it to send content to the twitter API -- this means it has the same restrictions/requirements as libcurl. the twitter api also does not support uploading directly from a url, and requires the image you wish to publish be sent as the POST body of the request.

to upload an image from a url you would need to first download the contents of that url to your server, and then send that downloaded content to the twitter api.

closing this out as i think it answers your question. if not, drop a comment afterwards and we can review.

@dafinley
Copy link
Author

You might be able to help. I was able to download the photo to my server,
but Im still not able to upload the photo to twitter https://dev.twitter.com/discussions/9424

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

No branches or pull requests

2 participants