mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #543] Flickr oauth1 succeeds, but then photo upload to returns: No Photo specified #358
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#358
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CAoTx on GitHub (Aug 30, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/543
@phimage @dongri
Description:
Hello, using the OAuth1 procedure to get authenticated with flickr. Works until the actual photo upload proceeds.
Flickr response with the error Message: No Photo Specified. I'm providing a jpeg image.
Here's my code.
OAuth Provider? (Twitter, Github, ..):
Flickr
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.x (Swift 5.1)
10.x (Swift 5.0)
10.x (Swift 4.1)
9.3 (Swift 4.1)
9.0 (Swift 4.0)
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Aug 31, 2019):
please provide a link to the doc where the upload of photo is
@CAoTx commented on GitHub (Sep 2, 2019):
Hey,
i found the problem.
The flickr upload API requests the parameter for the actual photo data named "photo" instead of "media", which was provided.
github.com/OAuthSwift/OAuthSwift@b8941a23d1/Sources/OAuthSwiftClient.swift (L125)I just changed that and everything works like a charm.
Thank you!