We've moved discussions to Discord

Direct Upload - Reset

Bryan Stewart
Getting a connection reset while trying to upload videos. 
activestorage.js:825 PUT https://demo.t0urnament.net/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhjR2gxY1RBMGEzTmtNVEJ6YjNNeE1XYzRlbnAyZVd0dVkyNDRiZ1k2QmtWVU9oRmpiMjUwWlc1MFgzUjVjR1ZKSWc1MmFXUmxieTl0Y0RRR093WlVPaE5qYjI1MFpXNTBYMnhsYm1kMGFHa0VtanVTRGpvTlkyaGxZMnR6ZFcxSkloMUtOSFJLYjJad0sxZHJRalpDZGxoVWVXeDJNSEJuUFQwR093WlUiLCJleHAiOiIyMDIwLTAzLTI3VDE4OjA4OjQzLjM1M1oiLCJwdXIiOiJibG9iX3Rva2VuIn19--71286c30fa35cee074cf6e1b60562bb44802ed04 net::ERR_CONNECTION_RESET
Chris Oliver
You might check your NGINX config and make sure it doesn't have client_max_body_size set too low. 

We limit it to 100MB on Hatchbox so that way people aren't uploading giant files and crashing the server when the disk runs out. Typically, you want direct uploads to S3 if you are handling large files so malicious users can't take down your server uploading giant files.
Bryan Stewart
That was it! Rockstar!

Conn O'Rourke
Any way to keep HatchBox from clobbering my config? We use validations to limit the size of various types of files, but we need to upload videos as well, so we need 150m, not 100m. 

# Allow uploads up to 150MB in size
client_max_body_size 150m;

Notifications
You’re not receiving notifications from this thread.