The Files Manager is a component of a system designed to handle file management operations in a web application. This controller specifically handles file uploading, downloading, and retrieval functionalities.
- Upload files with associated batch and document IDs.
- Retrieve and load files based on a specified path.
- Download files from the server.
To utilize the Files Manager:
-
Clone the repository:
git clone https://github.com/mohamedelareeg/FilesManager.git
-
Build the solution using Visual Studio or your preferred IDE.
-
Ensure that the necessary dependencies are installed and configured.
-
Access the FileController endpoints via HTTP requests or integrate them into your existing application.
-
Upload:
POST /File/Upload
- Uploads files to the server.
- Requires a list of form files, batch ID, and optional document ID.
- Returns information about the uploaded files.
-
GetFiles:
POST /File/GetFiles
- Retrieves files based on the provided request object.
- Requires a request object containing a path.
- Returns a BatchCRUDViewModel object.
-
Download:
GET /File/Download
- Downloads files from the server based on the provided subdirectory.
- Requires a subdirectory path.
- Returns the requested file(s) as a downloadable file.
- ASP.NET Core
- Microsoft.AspNetCore.Http
- Microsoft.Extensions.Hosting
- Newtonsoft.Json
Contributions are welcome! If you'd like to contribute to the Files Manager, feel free to open a pull request or submit an issue on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
- Microsoft.AspNetCore.Hosting - Hosting environment for ASP.NET Core.
- Newtonsoft.Json - JSON serialization and deserialization library for .NET.