fider icon indicating copy to clipboard operation
fider copied to clipboard

Images upload issues

Open Wohlstand opened this issue 6 years ago • 4 comments

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: Peek 2019-11-07 11-12

Wohlstand avatar Nov 07 '19 06:11 Wohlstand

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.

stale[bot] avatar May 08 '20 07:05 stale[bot]

I need to verify this again...

Wohlstand avatar May 08 '20 07:05 Wohlstand

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?

revij avatar Jul 06 '21 16:07 revij

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

anondev-sudo avatar Nov 05 '21 07:11 anondev-sudo