Open Wohlstand opened 5 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.
I need to verify this again...
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?
When you don't have S3 storage enabled, your files will be not stored on heroku. Add option to DISABLE image upload using .env.
While I tested up the Fider at my friend's server, I have found at least two bugs against pictures uploading:
When I trying to post a picture bigger than web server allows (in my case, web server had a 1 MB upload limit), the frontend gets stuck. In console I'll see the error message that request was failed.
After adding multiple pictures, attempt to remove one of them results in the appearance of a second "attach picture" button: