title: Handle nginx upload request based on request header
body: <p>nginx by default supports uploading with client_body_in_file_only on; which sends only the file path to the backend. There is the nginx upload module (<a href="https://github.com/vkholodkov/nginx-upload-module" rel="nofollow">https://github.com/vkholodkov/nginx-upload-module</a>) which supports multipart/formdata uploading. </p>
  
  <p>Now i want to have one location for instance /photo/upload/ which handles both kind of uploads as mentioned above. It should be based on a request header supplied by the user. for instance user request header should contain something like X-UPLOADTYPE multiprt or X-UPLOADTYPE clientbody and based on this header nginx should handle the request. </p>
  
  <p>I am not sure how should i proceed with this so and help would be appreciated.</p>