Rails 5: How to send and process large files (200Mb) via Rails API?

I’m looking for the general concept, but every tip can be useful. The client (mobile) has to send a large file to Rails API. It’s a some text file with raw data.

How can the Rails API get the large file from client? Should it be done by HTTP request, websockets? Should the files be sent in chunks?

This obviously depends on your setup but I would probably have the client send the file straight to s3 and process it asynchronously

Fred

What Frederick said. Sending it through the app would block the worker
handling the upload. The API might become unavailable for other clients.