Dropzone doesn't send correct proposal id to the /proposal/attach:id endpoint #660
Open
Description
Describe the bug
Dropzone doesn't send the correct proposal id to the /proposal/attach:id endpoint.
Error handling is also not proper so even image fails to upload, it shows success.
Steps to Reproduce
Steps to reproduce the behavior:
- Go to 'Organization'
- Click on 'Propose Idea'
- Write proposal details.
- Save the proposal as a draft.
- When you see dropzone(file upload section), choose a file to be uploaded.
- Checkout the error on the API server console.
Expected behavior
It should attach the image as expected.
Screenshots
DetectedBug