diff options
Diffstat (limited to 'config/initializers/workhorse_multipart.rb')
-rw-r--r-- | config/initializers/workhorse_multipart.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/initializers/workhorse_multipart.rb b/config/initializers/workhorse_multipart.rb index 4196e3a8f61..9c170d1adfa 100644 --- a/config/initializers/workhorse_multipart.rb +++ b/config/initializers/workhorse_multipart.rb @@ -1,5 +1,6 @@ Rails.application.configure do |config| - config.middleware.use(Gitlab::Middleware::Multipart) + # ApolloUploadServer::Middleware expects to find uploaded files ready to use + config.middleware.insert_before(ApolloUploadServer::Middleware, Gitlab::Middleware::Multipart) end # The Gitlab::Middleware::Multipart middleware inserts instances of our |