I'm using https://github.com/aws/aws-sdk-ruby for uploading video files to S3. Server application prepares presigned post data and frontend sends AJAX request to AWS S3.
I wonder how long this request could last before timeout error occurs. Actually I'm concerned that file size and low bandwidth could be reasons for long uploading and application could crash, so I wan't to avoid that.
BTW, for version 2 of the SDK (which is what you should use for new development), there is no central core API (like AWS.config
in the previous version) for setting these things, instead you need to specify it for each different API when initialize the client.
For example, to set the HTTP timeout for the S3 client, you'd initialize it like this:
s3 = Aws::S3::Client.new http_read_timeout: 10