This project demonstrates how to upload files to Amazon S3 and map data from MS Word documents using ASP.NET Core. The example includes setting up AWS S3 integration and parsing Word documents to extract and process data.
- Project Overview
- Features
- Prerequisites
- Installation
- Usage
- Configuration
- Contributing
- License
- Contact
The project is a sample ASP.NET Core application that allows users to upload files to an AWS S3 bucket and process MS Word documents to extract and map data. This is particularly useful for scenarios where document processing and cloud storage are required.
- File Upload to S3: Upload any file type directly to an AWS S3 bucket.
- MS Word Data Mapping: Parse and extract data from MS Word documents (.docx).
- AWS Integration: Easy configuration for integrating with AWS S3.
Before running this project, ensure you have the following:
- .NET 6.0 SDK or later
- An AWS account with S3 access
- AWS CLI configured on your machine (optional, but recommended)
- Visual Studio 2022 or another IDE that supports ASP.NET Core
-
Clone the repository:
bash
Copy code
git clone https://github.com/LHai-dev/example-asp-.net-upload-file-S3-and-mapping-ms-word.git cd example-asp-.net-upload-file-S3-and-mapping-ms-word
-
Restore the dependencies:
bash
Copy code
dotnet restore
-
Build the project:
bash
Copy code
dotnet build
-
Run the application:
bash
Copy code
dotnet run
-
Access the application via
http://localhost:5000
(or the port configured inlaunchSettings.json
). -
Use the web interface to upload a file. The file will be uploaded to your configured S3 bucket, and if it's a Word document, the data will be mapped and displayed.
To configure the project to work with your AWS S3 bucket, you'll need to update the appsettings.json
file with your AWS credentials and S3 bucket information:
json
Copy code
{ "AWS": { "Profile": "default", "Region": "us-east-1", "BucketName": "your-s3-bucket-name" } }
Ensure that the AWS credentials are correctly set up on your machine, either via the AWS CLI or directly in the appsettings.json
file.
Contributions are welcome! Please fork the repository and submit a pull request if you'd like to contribute. For major changes, please open an issue first to discuss the change.
This project is licensed under the MIT License - see the LICENSE
file for details.
For any inquiries or issues, feel free to open an issue in the repository or contact the project maintainers.
This README provides a clear and detailed overview of your project, including setup instructions, configuration details, and usage guidelines. Let me know if you need any modifications or further details!