You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Read-and-Save-document/Open-and-save-Word-document/AWS-S3-Bucket/Open-Word-document/Open-Word-document/Controllers/HomeController.cs
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,9 +54,6 @@ public async Task<IActionResult> EditDocument()
Copy file name to clipboardExpand all lines: Read-and-Save-document/Open-and-save-Word-document/AWS-S3-Bucket/Save-Word-document/Save-Word-document/Controllers/HomeController.cs
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -255,7 +255,6 @@ public async Task<IActionResult> UploadDocument()
255
255
//Saves the Word document to MemoryStream
256
256
MemoryStreamstream=newMemoryStream();
257
257
document.Save(stream,FormatType.Docx);
258
-
stream.Position=0;
259
258
260
259
//Your AWS Storage Account bucket name
261
260
stringbucketName="your-bucket-name";
@@ -268,6 +267,13 @@ public async Task<IActionResult> UploadDocument()
268
267
269
268
returnOk("Word document uploaded to AWS S3 Storage.");
0 commit comments