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

Imgur Upload #31

Open
carlbennett opened this issue Jul 28, 2016 · 17 comments
Open

Imgur Upload #31

carlbennett opened this issue Jul 28, 2016 · 17 comments

Comments

@carlbennett
Copy link

I'd like to request a feature for being able to upload to Imgur from the extension.

@rojer
Copy link
Owner

rojer commented Jul 28, 2016

yes, makes sense

@jkayani
Copy link
Contributor

jkayani commented Dec 31, 2016

Should the image be uploaded anonymously to Imgur, or should it be tied to an Imgur account?

@carlbennett
Copy link
Author

carlbennett commented Dec 31, 2016

I think as a phase 1 it could be anonymous only and phase 2 you could implement the Imgur API and allow logging in.

@jkayani
Copy link
Contributor

jkayani commented Jan 4, 2017

I probably missed something, but here are links to phase 1 and phase 2 Imgur integration:

Phase 1: https://github.com/jkayani/a-s-minus/tree/imgur-phase1
Phase 2: https://github.com/jkayani/a-s-minus/tree/imgur-phase2

Test them out, and if they seem pretty bug-free, I'll open a pull request.

@carlbennett
Copy link
Author

I was just talking about phases cause it seemed like it was going to be a lot of work.

@jkayani
Copy link
Contributor

jkayani commented Jan 5, 2017

I thought it was a good idea since I didn't really plan on doing it all anyway; plus I guess it's better practice that they're on separate branches. Anyway, let me know if you find a flaw in there.

@carlbennett
Copy link
Author

carlbennett commented Feb 17, 2017

I got an error with the phase1 branch with HEAD abf0773:

Permission 'identity.email' is unknown or URL pattern is malformed.

image

I also got an error while trying to use the upload:

Sorry, but a 404 error was encountered.

@carlbennett
Copy link
Author

carlbennett commented Feb 17, 2017

The phase2 branch at HEAD ff9d386 works successfully but I got the same permission error about identity.email.

@carlbennett
Copy link
Author

And personally, I feel like both branches should be merged together to create a single "Imgur Upload" feature branch, but I'm not a maintainer so do as you wish.

@jkayani
Copy link
Contributor

jkayani commented Feb 17, 2017

I was able to reproduce both issues in Opera on my laptop - the issue with the identity.email doesn't seem to affect the behavior of the extension, since it works fine on my laptop with the phase2 branch. It's probably just that Opera doesn't recognize that permission, whereas Chrome does.

The problem you found with the phase1 branch was a mistake I left behind in the code when I was working on it last; I'll make a commit to fix it soon. You'll get the same error with identity.email, but it should work fine.

The phase2 branch contains the functionality of the phase1 branch, so if any branch is going to merged into the project, it should be imgur-phase2. I only created them in phases because I wasn't sure how much of the implementation I'd be able to do.

@carlbennett
Copy link
Author

I look forward to the next round of testing.

@carlbennett
Copy link
Author

@rojer @jkayani Any update on this?

@rojer
Copy link
Owner

rojer commented Mar 29, 2017

sorry, extremely busy with other stuff... but there might be some development here in a couple weeks.

@zeevox
Copy link
Contributor

zeevox commented Apr 18, 2017

dev just merged @jkayani 's pull request: 4b76c46

@carlbennett
Copy link
Author

@rojer still hasn't released it yet though.

@marsjaninzmarsa
Copy link

I cannot login to Imgur using OAuth, only login/password working...

https://youtu.be/4CBYlYIKqss

@jkayani
Copy link
Contributor

jkayani commented Dec 27, 2018

I can reproduce your issue @marsjaninzmarsa, but I'm not sure what causes it nor how to fix it. The login prompt appears when we use the extension API browser.identity.launchWebAuthFlow, but after that, it's in the hands of the OAuth provider and the browser. Sorry.

I think this issue can be closed too.

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

5 participants