Set up request headers automatically from the file type (jpg/png etc.)