private string UploadApplication(string projectArn, string applicationLocation, UploadType uploadType) { string applicationName = Path.GetFileName(applicationLocation); var uploadResponse = DFClient.CreateUpload(new CreateUploadRequest() { Name = applicationName, ProjectArn = projectArn, Type = uploadType, ContentType = ContentType }); PresignedPut(uploadResponse.Upload.Url, applicationLocation, ContentType); return uploadResponse.Upload.Arn; }