3 ms·
> ...if you need to send file data along with other values. You'll have a bad time trying to send this as JSON. Does anyone think it's ever a good idea to post
by wayneftw 5y ago
> ...if you need to send file data along with other values. You'll have a bad time trying to send this as JSON.
Does anyone think it's ever a good idea to post files and form data all at the same time, to the same endpoint? That right there seems like an exceptionally bad idea.
Typically I would generate signed upload URLs for clients to upload files directly to some bucket and the submitted form data would contain only pointers to those uploads.
- jaffathecake 5y agoThat's absolutely an option. Decent tooling allows streaming processing of multipart/form-data, so there might not be a ton of benefit. I guess it depends on your server set up.