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

Images are not being uploaded to creative commons from google drive #36

Open
RishikaBhatia17 opened this issue Mar 11, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@RishikaBhatia17
Copy link
Contributor

To Reproduce
Steps to reproduce the behavior:
Login to Wikimedia commons with meta account
Login to google drive with google account
Select images to be uploaded from google drive
Select the "Upload to Wikimedia commons" action button

Actual Results:
After clicking on the "Upload to Wikimedia commons" button, the button gets a bit transparent but there is no action taken, that is, the images are not being uploaded to commons and also if we again click on that button it gets back to it's original state and there is no uploading happening. Hence when we click the upload button, the graphic of button is only hanged but there is nothing else happening.
image (3) (1)

Expected Results:
After clicking in the "Upload to Wikimedia commons" button, the upload should start and images should be uploaded to Wikimedia commons from google drive.

Testing done on Windows 10, Ubuntu 18.04, mac OS and Android 10(Google chrome Mobile browser)

@NdibeRaymond
Copy link

possible duplicate of issue #32

@RishikaBhatia17
Copy link
Contributor Author

Hi @NdibeRaymond ,
I have just gone through the issue #32 .
I have found out that you have not mentioned the actual results clearly and i feel that the issue has been just mentioned vaguely. That's why I have added this issue.
Thanks!

@tonythomas01
Copy link
Owner

Thank you guys. Can you also paste the result of the network call (from inspector in the browser) to the POST call to upload/. We might find some answers there.

@RishikaBhatia17
Copy link
Contributor Author

I have followed the local environment setup instructions that were mentioned in the documentation. I have got all the Google Cloud Platform related keys and pasted them in the local settings.
Then, I have started the process to request for an OAuth client using Wikimedia:OAuth by filling the following form: https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose
In the 1st try, I have set the MediaWiki OAuth Callback URL as http://127.0.0.1:8000/ (Local host) and I was facing a problem while running the application
In the 2nd try, I have set the MediaWiki OAuth Callback URL as https://tools.wmflabs.org/google-drive-photos-to-commons/upload/? (Choose Photos from Google Drive button page) and I have got both the keys.
Then I have pasted the keys in local_settings.py file and then I have Run the Django standard runserver. Now I'm able to upload the file to Wikimedia commons from google drive successfully as shown below.
image

Also, I have used the dev keys as given in the https://phabricator.wikimedia.org/P10014
The only keys I have changed are the OAuth client using Wikimedia:OAuth because I felt there was a mistake in the callback URL.
I'm also able to upload images multiple times.
Hence I would request you to generate new OAuth client using Wikimedia:OAuth by setting the MediaWiki OAuth Callback URL as https://tools.wmflabs.org/google-drive-photos-to-commons/upload/? (Choose Photos from Google Drive button page) and paste both the newly generated keys in local settings.py and run the tool and test it.
So, I feel that the solution for the primary bug is found out now and it would be a great help if you can test this method and let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants