Skip to content

LHai-dev/example-asp-.net-upload-file-S3-and-mapping-ms-word

Repository files navigation


ASP.NET Core Example: Upload File to S3 and Map MS Word Data

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.

Table of Contents

Project Overview

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.

Features

  • 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.

Prerequisites

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

Installation

  1. 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

  2. Restore the dependencies:

    bash

    Copy code

    dotnet restore

  3. Build the project:

    bash

    Copy code

    dotnet build

Usage

  1. Run the application:

    bash

    Copy code

    dotnet run

  2. Access the application via http://localhost:5000 (or the port configured in launchSettings.json).

  3. 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.

Configuration

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.

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published