Add option to send extra headers when sending file

Sometimes you require some extra headers to be sent when you do the POST request. This PR adds a new `extraHeaders` to be able to do it.