The user should be allowed to upload new documents, the backend should keep track of those documents in the db: documentID, userID, uploadTS. The document contents aren't uploaded to any storage, just processed to perform search on them.
In the backend, the endpoint can be called /upload and receive the payload and JWT to validate which user owns the document.
Description
The user should be allowed to upload new documents, the backend should keep track of those documents in the db:
documentID
,userID
,uploadTS
. The document contents aren't uploaded to any storage, just processed to perform search on them.In the backend, the endpoint can be called
/upload
and receive the payload and JWT to validate which user owns the document.