for the resources section, instead of asking users to paste drive links, implement direct pdf upload using google drive api.
when a user uploads a file, send it to the backend, upload it to google drive using a service account(alrdy hav one.. pls dm me) , make the file public, and store the generated link (file id) in the database. this link will then be used to display/access the file after approval.
set up google cloud (enable drive api, service account, use json key via env), and make sure the drive is shared with the service account. handle uploads securely from backend only and keep metadata in db.
create a new branch, implement the full flow (upload → store → retrieve), test properly, and raise a pr.
comment below if ur working on this
for the resources section, instead of asking users to paste drive links, implement direct pdf upload using google drive api.
when a user uploads a file, send it to the backend, upload it to google drive using a service account(alrdy hav one.. pls dm me) , make the file public, and store the generated link (file id) in the database. this link will then be used to display/access the file after approval.
set up google cloud (enable drive api, service account, use json key via env), and make sure the drive is shared with the service account. handle uploads securely from backend only and keep metadata in db.
create a new branch, implement the full flow (upload → store → retrieve), test properly, and raise a pr.
comment below if ur working on this