Skip to content

Commit

Permalink
Merge pull request #1199 from OfficeDev/v-mfurquan/file-upload-fixes-…
Browse files Browse the repository at this point in the history
…csharp

File Upload Message Updated When Successfully File Uploaded
  • Loading branch information
Pawank-MSFT authored Mar 18, 2024
2 parents 40cbc1d + 50687f8 commit 978b5bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@
<p>
<div>
<label for="domainChoice">Select the data center Region you would like to set: </label>
@* Added defects to check automation flow *@

@* <select id="domainChoice" name="domainChoice">
<select id="domainChoice" name="domainChoice">
<option value="" selected="selected">(Select a region)</option>
@foreach (var item in Model.regionDomains)
{
<option value="@item.region">@( item.country + " - " + item.region)</option>
}
</select> *@
</select>
</div>
</p>

Expand Down
6 changes: 1 addition & 5 deletions samples/bot-file-upload/csharp/Bots/TeamsFileUploadBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,7 @@ private async Task FileUploadCompletedAsync(ITurnContext turnContext, FileConsen
ContentUrl = fileConsentCardResponse.UploadInfo.ContentUrl,
};


// var reply = MessageFactory.Text($"<b>File uploaded.</b> Your file <b>{fileConsentCardResponse.UploadInfo.Name}</b> is ready to download");
// Added defects to check automation flow

var reply = MessageFactory.Text($"<b>File upload failed.</b>");
var reply = MessageFactory.Text($"<b>File uploaded.</b> Your file <b>{fileConsentCardResponse.UploadInfo.Name}</b> is ready to download");
reply.TextFormat = "xml";
reply.Attachments = new List<Attachment> { asAttachment };

Expand Down

0 comments on commit 978b5bf

Please sign in to comment.