social-platform-donut-frontend
social-platform-donut-frontend copied to clipboard
Dropzone doesn't send correct proposal id to the /proposal/attach:id endpoint
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