# Upload Large Files To SharinPix

## Overview

In this article, we will demonstrate how to use a multipart image upload on a SharinPix Album or SharinPix Single Image. To do so, we will:

* [Create a SharinPix Permission to set Multipart Upload](#creation-of-sharinpix-permission)
* [Assign the Permission to a SharinPix Component](#assign-the-sharinpix-permission-to-the-album-component)

SharinPix uses a feature called **Multipart Upload** for large file transfers: breaking a large file into smaller parts, uploading them in parallel for speed, and reassembling them in Amazon S3.

The key benefits include:

* Improved Throughput/Speed when uploading large files
* Enhanced Reliability and Fault Tolerance
* Efficient Memory Usage

{% hint style="warning" %}
**Note:**&#x20;

* If you do not frequently upload files larger than **100 MB**, do not activate this, as it will affect performance
* **Before using this feature, ensure you have the latest SharinPix package installed.** [*How to upgrade SharinPix package*](https://app.gitbook.com/s/i8tH1o5AHthxksYgF6ij/how-to-update-sharinpix-package-from-the-appexchange)
  {% endhint %}

## Creation of SharinPix Permission

* In [SharinPix Permissions](https://docs.sharinpix.com/documentation/access-and-security/sharinpix-permission-object-how-to-create-and-assign-custom-permission), create a new record or edit an existing permission.
* Open the Upload section and check Multipart Upload.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-c658a9971e26308c71f54d1bbe554090488f204c%2FUpload%20Multipart%20Doc.png?alt=media)

## Assign the SharinPix Permission to the Album component

* On a [SharinPix Album](https://docs.sharinpix.com/documentation/lightning-web-component/sharinpix-album-lwc), add the **ID** or **Name** of the SharinPix Permission record, which includes the maximum file size.
* In this example, the custom permission was named **Upload Multipart**. It has been set in the **Custom Permissions ID or Name** parameter of a *SharinPix Album* component.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-f42dec0b6686db780962afe979f04b51030ed297%2FUpload%20Multipart%20Doc%20\(1\).png?alt=media)

{% hint style="success" %}
**Tip:**\
\
The above will also work for a [SharinPix Single Image](https://docs.sharinpix.com/documentation/lightning-web-component/sharinpix-single-image). The custom permission created should then be defined as a Single Image Permission.
{% endhint %}
