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

#10 as i discuss - Need to upload resume or other thing is --- #11

Open
manzil-infinity180 opened this issue Aug 11, 2024 · 1 comment

Comments

@manzil-infinity180
Copy link
Owner

Is it any way we can do it like if we upload from our application and connect the drive account or onedrive of my college somehow and take the link from there and automatically paste here

--- something like that

@manzil-infinity180
Copy link
Owner Author

Yes, it's possible to implement a system where you upload files to a cloud storage service like Google Drive or OneDrive and then automatically retrieve and use the file link in your application. Here's how you can do it:

  1. Integration with Google Drive or OneDrive:
    Google Drive API: You can use the Google Drive API to upload files directly from your application to a linked Google Drive account. After uploading, you can obtain the shareable link for the file.
    OneDrive API: Similarly, the OneDrive API allows you to upload files to a OneDrive account and then retrieve the shareable link.
  2. Authentication and Authorization:
    You will need to set up OAuth 2.0 authentication to allow your application to access a user's Google Drive or OneDrive account. This involves getting the user's permission to access their files.
    For Google Drive, you would use the Google API Console to create credentials and handle OAuth flow.
    For OneDrive, you would use Microsoft's Azure portal to register your app and set up OAuth.
  3. Uploading and Retrieving File Links:
    Once authenticated, your application can upload files directly to the linked Google Drive or OneDrive account.
    After uploading, you can use the API to generate a shareable link for the file. This link can then be automatically pasted or used in your application as needed.
  4. Automation and Linking:
    You can automate the process so that every time a user uploads a file through your application, it’s automatically saved to their linked Drive/OneDrive account, and the link is generated and stored where needed.
    You can store this link in your database, display it to the user, or use it for other purposes in your application.
  5. Considerations:
    Permissions: Make sure the uploaded files are given the appropriate sharing permissions so that the links work as expected (e.g., public, anyone with the link, etc.).
    Security: Ensure that sensitive data is handled securely, especially when dealing with OAuth tokens and file permissions.
    Usage Limits: Be aware of API usage limits and quotas for Google Drive and OneDrive to avoid hitting limits unexpectedly.
    Example Libraries:
    Google Drive API: google-api-python-client for Python, googleapis for Node.js.
    OneDrive API: microsoft-graph for Python, msal and microsoft-graph-client for Node.js.
    This approach allows you to leverage existing storage solutions like Google Drive or OneDrive, potentially reducing costs and making file access easier.

from chatgpt https://chatgpt.com/c/789d2147-8eb8-411e-aa4c-4fb4c4f65fb8

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

1 participant