getfider / fider

Open platform to collect and prioritize feedback
https://fider.io
GNU Affero General Public License v3.0
3.04k stars 638 forks source link

Images upload issues #814

Open Wohlstand opened 5 years ago

Wohlstand commented 5 years ago

While I tested up the Fider at my friend's server, I have found at least two bugs against pictures uploading:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Wohlstand commented 4 years ago

I need to verify this again...

revij commented 3 years ago

Can confirm having the same bug on the latest version. Uploading 50kb images works, but anything more than ~100 kb causes the error mentioned. Running with docker-compose --log-level DEBUG up only shows: app_1 | DEBUG [2021-07-06T15:39:03Z] [WEB] [JAZD1P6clQMg63Q1QT7YL7YsEK8oB7PC] window.unhandledrejection: Failed to POST /api/v1/posts with body '{"title":"test post","description":"does this work","attachments":[{"upload":{"fileName":"background.png","content":"iVBORw0KGgoAAAANSUhEUgAACgAAAAWgCAMAAACl3urtAAADAFBMVEUSBRoYBx07FyopCSM/HS03ESg+GSo+Kj57Wl+MYE8jBh5PMEFkP010V1xGLUJpO0ZsP0...'

Could it be that the Base64 output is too large for the webserver to handle?

anondev-sudo commented 3 years ago

When you don't have S3 storage enabled, your files will be not stored on heroku. Add option to DISABLE image upload using .env.