Reject promise when content and content-file options are used simultaneously