Added in credentials as argument for upload in PublishController