{"action":"created","issue":{"url":"https://api.github.com/repos/civetweb/civetweb/issues/215","labels_url":"https://api.github.com/repos/civetweb/civetweb/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/civetweb/civetweb/issues/215/comments","events_url":"https://api.github.com/repos/civetweb/civetweb/issues/215/events","html_url":"https://github.com/civetweb/civetweb/issues/215","id":113376777,"number":215,"title":"PUT handling with file upload","user":{"login":"gbjbaanb","id":6808175,"avatar_url":"https://avatars.githubusercontent.com/u/6808175?v=3","gravatar_id":"","url":"https://api.github.com/users/gbjbaanb","html_url":"https://github.com/gbjbaanb","followers_url":"https://api.github.com/users/gbjbaanb/followers","following_url":"https://api.github.com/users/gbjbaanb/following{/other_user}","gists_url":"https://api.github.com/users/gbjbaanb/gists{/gist_id}","starred_url":"https://api.github.com/users/gbjbaanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbjbaanb/subscriptions","organizations_url":"https://api.github.com/users/gbjbaanb/orgs","repos_url":"https://api.github.com/users/gbjbaanb/repos","events_url":"https://api.github.com/users/gbjbaanb/events{/privacy}","received_events_url":"https://api.github.com/users/gbjbaanb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-10-26T15:09:47Z","updated_at":"2016-01-04T14:22:24Z","closed_at":null,"body":"I have a requirement to upload a file and then perform some custom processing on it immediately after the upload. The files are uploaded using webdav (ie PUT requests).\r\n\r\nI can see the requests being made and the file upload working, but as soon as I add my own PUT handler, the file upload stops. Looking through the code it seems the handler (if any) is called, and if it returns true, the rest of the if-else chain in handle_request is skipped.\r\n\r\nI thought of returning false, but then the handler would be called before the file upload :(\r\n\r\nSo my next though was to call civet to perform the file upload as if the PUT method had been handled directly... but its not accessible as an exported function.\r\n\r\nSo, before I hack around in the code to make put_file (and the auth checks) accessible to my handler, is there a better way of doing what I want here - am I missing something that would make my life easy?"},"comment":{"url":"https://api.github.com/repos/civetweb/civetweb/issues/comments/168689460","html_url":"https://github.com/civetweb/civetweb/issues/215#issuecomment-168689460","issue_url":"https://api.github.com/repos/civetweb/civetweb/issues/215","id":168689460,"user":{"login":"bel2125","id":5619191,"avatar_url":"https://avatars.githubusercontent.com/u/5619191?v=3","gravatar_id":"","url":"https://api.github.com/users/bel2125","html_url":"https://github.com/bel2125","followers_url":"https://api.github.com/users/bel2125/followers","following_url":"https://api.github.com/users/bel2125/following{/other_user}","gists_url":"https://api.github.com/users/bel2125/gists{/gist_id}","starred_url":"https://api.github.com/users/bel2125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bel2125/subscriptions","organizations_url":"https://api.github.com/users/bel2125/orgs","repos_url":"https://api.github.com/users/bel2125/repos","events_url":"https://api.github.com/users/bel2125/events{/privacy}","received_events_url":"https://api.github.com/users/bel2125/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T14:22:24Z","updated_at":"2016-01-04T14:22:24Z","body":"`mg_upload` will be replaced by a better function soon.\r\nsee issue #180"}}