Skip to content

Replace Rack::Multipart with gitlab-workhorse based system

Let gitlab-workhorse save Mime multipart uploads to tempfiles. This effectively replaces Rack::Multipart.

Rack::Multipart tends to leave behind files in /tmp and uses Unicorn processes to copy files around. This new implementation uses gitlab-workhorse for the copying work and cleanup, and only leaves it to gitlab-ce to move the uploaded file to its final storage directory.

Merge request reports