Include Rack::TempFileReaper in Grape ?
Author: ericproulxCreated Jul 29, 2024Updated Jul 8, 2026
Labelsfeature requestyou can help
I've noticed that tempfiles created when uploading a file (Rack::Multipart) are not closed and unlink by default. Fortunately, Rack provides a middleware for it and we just need to add it
Rails includes it by design so its not an issue when using Grape through it.
Source: ruby-grape/grape