Set content type when posting photos

There seems to be a problem when loading files that were posted using the base64 technique on android devices, and they can't be decoded properly.

This fixes that problem (as it was tested on the test server).