{"action":"opened","issue":{"url":"https://api.github.com/repos/Yelp/bravado-core/issues/53","labels_url":"https://api.github.com/repos/Yelp/bravado-core/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/bravado-core/issues/53/comments","events_url":"https://api.github.com/repos/Yelp/bravado-core/issues/53/events","html_url":"https://github.com/Yelp/bravado-core/issues/53","id":110285464,"number":53,"title":"File upload is too aggressive","user":{"login":"laucia","id":1099964,"avatar_url":"https://avatars.githubusercontent.com/u/1099964?v=3","gravatar_id":"","url":"https://api.github.com/users/laucia","html_url":"https://github.com/laucia","followers_url":"https://api.github.com/users/laucia/followers","following_url":"https://api.github.com/users/laucia/following{/other_user}","gists_url":"https://api.github.com/users/laucia/gists{/gist_id}","starred_url":"https://api.github.com/users/laucia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laucia/subscriptions","organizations_url":"https://api.github.com/users/laucia/orgs","repos_url":"https://api.github.com/users/laucia/repos","events_url":"https://api.github.com/users/laucia/events{/privacy}","received_events_url":"https://api.github.com/users/laucia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-07T18:16:36Z","updated_at":"2015-10-07T18:16:36Z","closed_at":null,"body":"```python\r\nfrom mock import Mock\r\nfrom bravado_core.param import add_file, Param\r\nfrom bravado_core.operation import Operation\r\nfrom bravado_core.spec import Spec\r\nempty_swagger_spec = Spec(spec_dict={})\r\nrequest = {}\r\nop = Mock(spec=Operation, consumes=['multipart/form-data'])\r\nparam_spec = {\r\n    'type': 'file',\r\n    'in': 'formData',\r\n    'name': 'photo'\r\n}\r\nparam = Param(empty_swagger_spec, op, param_spec)\r\nadd_file(param, None, request)\r\nprint request\r\n```\r\nresults in `{'files': [('photo', ('photo', None))]}`\r\n\r\nfeels like this should be `{}` as this results in bravado always trying to upload an empty/inexisting file if it is defined in the spec, which doesn't play well with most bravado clients (`Fido` and `RequestsClient`)."}}