I have a Rails 3 project that uploads / downloads a file with permissions (the User has many Files and can only read / write his own files).
If I store files on a classic file system, I can check access to the file in my rails application, and then use the X-Sendfile header to redirect to the file if the user has access. Thus, the user cannot access the file without permission, and the download is quick.
Can I download files from GridFS as fast as the X-Sendfile and pass docking with them through the rails / rack?
Would piping through rails / racks be terribly slow?
Can I download files from GridFS as fast as the X-Sendfile and pass docking with them through the rails / rack, AND ALSO have the ability to force access rights?
clyfe source
share