PalisadoesFoundation / talawa-api

API Backend for the Talawa Mobile App. Click on the link below to see our documentation
https://docs.talawa.io/
GNU General Public License v3.0
224 stars 816 forks source link

Error handling that can occur during the file upload process for the file uploadImage.ts #1264

Closed nishant3721 closed 1 year ago

nishant3721 commented 1 year ago

Describe the bug Currently, the function only rejects the promise if an error occurs during the createReadStream call.

To Reproduce Steps to reproduce the behavior:

  1. run the server using 'npm run dev'
  2. upload the file using the query which has the upload file feature

Expected behavior Error handling should be done for the upload process also.

Actual behavior Currently, the errors are handled for the createReadStream call, not during the upload file process.

Screenshots image

Additional details Not required

Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship https://github.com/PalisadoesFoundation/talawa/issues/359

nishant3721 commented 1 year ago

@palisadoes please assign me this.

palisadoes commented 1 year ago

Closing. GSoC 2024 potential project