{"action":"closed","issue":{"url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/287","labels_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/287/comments","events_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/287/events","html_url":"https://github.com/apigee-127/swagger-tools/issues/287","id":110962683,"number":287,"title":"pass options for multer into swagger-metadata middleware","user":{"login":"calibr","id":4965093,"avatar_url":"https://avatars.githubusercontent.com/u/4965093?v=3","gravatar_id":"","url":"https://api.github.com/users/calibr","html_url":"https://github.com/calibr","followers_url":"https://api.github.com/users/calibr/followers","following_url":"https://api.github.com/users/calibr/following{/other_user}","gists_url":"https://api.github.com/users/calibr/gists{/gist_id}","starred_url":"https://api.github.com/users/calibr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calibr/subscriptions","organizations_url":"https://api.github.com/users/calibr/orgs","repos_url":"https://api.github.com/users/calibr/repos","events_url":"https://api.github.com/users/calibr/events{/privacy}","received_events_url":"https://api.github.com/users/calibr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-12T12:17:58Z","updated_at":"2015-10-13T11:10:05Z","closed_at":"2015-10-13T11:10:05Z","body":"Hello! Our swagger project recieves big file uploads(up to 2G), but current swagger-metadata middleware uses `inMemory: true`(https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-metadata.js#L41-L43) multer configuration, so that can cause huge memory consumption with concurrent uploads. I guess it's a good approach to allow multer to be configurable, I can submit PR, but I have no idea how to pass options to swagger-metadata middleware. I see that first two arguments are taken(https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-metadata.js#L430), perhaps need to add third argument for custom options. Can you give advice about that?"}}