Skip to content

Include Rack::TempFileReaper in Grape ? #2487

Open

Description

@ericproulx

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.

Activity

  1. hiSandog commented on Jul 8, 2026

    @hiSandog

    The scope would be easier to review if the first version defined a small acceptance contract for Include Rack::TempFileReaper in Grape ?. I would call out the default behavior, the migration/backwards-compatibility story, and one or two cases that are intentionally out of scope so the implementation does not grow beyond the original request.

  2. ericproulx commented on Jul 8, 2026

    @ericproulx
    ContributorAuthor

    I think having a opt-in parameter like lint! would be a great start.

  3. added a commit that references this issue on Oct 22, 2026
    f2dbebb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions