Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/isaka-james/chunks-to-file

A nodejs chunking system
https://github.com/isaka-james/chunks-to-file

chunk chunked-uploads chunking chunking-algorithm chunking-files chunks node-chunking nodejs nodejs-chunking

Last synced: about 1 month ago
JSON representation

A nodejs chunking system

Awesome Lists containing this project

README

        


Chunks to File - NodeJs Application

Project Image


since 16 April,2024



A Node.js application for uploading file chunks and combining them into a single file on the server.

Speeding your application **5x Faster** than the uploading you are currently using!.

## Table of Contents

- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## Introduction

In many scenarios, uploading large files to a server can be challenging due to limitations in file size or network conditions. This project provides a solution by allowing the client to split a large file into smaller chunks and upload them individually to the server. Once all chunks are received, the server combines them into a single file.

Click to see how it works:





## Features

- Split large files into smaller chunks for easier uploading.
- Upload chunks to the server asynchronously.
- Combine uploaded chunks into a single file on the server.
- Accepts all types of files.
- Simple and easy-to-use interface.

### Simplified Pros Commentary:
>*JavaScript on front-end divides the user's selected file into smaller segments and transmits them simultaneously to the server through the `/documents` route. These segments are then stored in a temporary location known as `temps` folder on the server. Following successful storage, the browser prompts the server to aggregate these segments via the `/combine` route. Utilizing binary methods, the server adeptly merges the segmented data, On completion, file being will be securely stored within the `uploads` directory. So, all the broken pieces of data come together nicely to make one complete file on the server.*

### Preview:
>![image](https://github.com/isaka-james/chunks-to-file/assets/76619967/ce76e9c8-4b7f-4d2a-beb6-e595e9af665a)

## Installation

To use this application, follow these steps:

1. Clone the repository:

```bash
git clone https://github.com/isaka-james/chunks-to-file.git
```

2. Enter into the project folder:

```bash
cd chunks-to-file
```
3. Install the dependencies:
```bash
npm install
```

## Usage

1. Start the server:

```bash
npm start
```

2. Open your web browser and navigate to `http://localhost/`.
3. Select a file using the provided input field.
4. Click the "Upload" button to initiate the upload process.
5. The server will receive the file chunks and combine them into a single file inside the `uploads` folder.

## Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.

## License

This project is licensed under the [MIT License](LICENSE).
```

Feel free to customize the content and add more details specific to your project. If you have any questions or need further assistance, let me know!