Janko Marohnić, creator of the Shrine file-attachment library, walks through best practices for file uploads in Ruby web applications: server-side metadata/MIME/dimension validation, image processing with libvips vs ImageMagick, on-the-fly vs on-upload processing, direct uploads to S3 via Uppy, and resumable uploads using S3 multipart or the tus protocol. Q&A covers signed URLs for DDoS protection, orphan-file handling with temporary storage, testing with MinIO, and the potential of imageflow.
claude-opus-4-76641b3bc