Coder Social home page Coder Social logo

Comments (4)

NdibeRaymond avatar NdibeRaymond commented on June 8, 2024

possible duplicate of issue #32

from gdrive-to-commons.

RishikaBhatia17 avatar RishikaBhatia17 commented on June 8, 2024

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!

from gdrive-to-commons.

tonythomas01 avatar tonythomas01 commented on June 8, 2024

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.

from gdrive-to-commons.

RishikaBhatia17 avatar RishikaBhatia17 commented on June 8, 2024

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.

from gdrive-to-commons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.