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

File Uploads #50

Open
trangiabach opened this issue Apr 6, 2023 · 0 comments
Open

File Uploads #50

trangiabach opened this issue Apr 6, 2023 · 0 comments

Comments

@trangiabach
Copy link
Contributor

trangiabach commented Apr 6, 2023

  • We will be creating 3 new file uploads fields within the Referral Model, namely FollowUpLetterFileName, OutReachLetterFileName, ReferralFileName.
  • All these fields will point to the actual files stored within a Mongo's GridFSBucket instance (by filename).
  • You should make POST, GET, and DELETE routes to upload, retrieve, and delete each of these files into the database. If there is already a file saved, it should get replaced by the new file that is being POSTed
  • For a nice intro into how to use GridFS (Mongo's own file storage solution for >=16MB file size), here is a nice tutorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants