fix media uploads in api (specifically friendica for android)