Skip to content

Commit db5c286

Browse files
Merge pull request #2294 from syncfusion-content/EJ2-1011162-staging
documentation(EJ2-1011162): Revamp the “Open and Save” Section in the React Spreadsheet UG Documentation
2 parents 8b332a3 + 6e8c35b commit db5c286

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Document-Processing/Excel/Spreadsheet/React/Save-Excel-File/to-aws-s3-bucket.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ N> Replace **Your Access Key from AWS S3**, **Your Secret Key from AWS S3**, and
118118

119119
**Step 3:** Modify the index File in the Spreadsheet sample to using [`saveAsJson`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#saveasjson) method to serialize the spreadsheet and send it to the back-end
120120

121-
```tsx
122-
121+
```js
123122
// Function to save the current spreadsheet to AWS S3 via an API call
124123
const saveToS3 = () => {
125124
// Convert the current spreadsheet to JSON format
@@ -155,7 +154,6 @@ const saveToS3 = () => {
155154
});
156155
});
157156
};
158-
159157
```
160158

161159
N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example.

0 commit comments

Comments
 (0)