In this article, we will demonstrate how to restrict the maximum size of a file when uploading on a SharinPix Album or SharinPix Single Image. To do so, we will:
Prerequisite:
Before using this feature, ensure:
The SharinPix Package Version 1.340 (or later) is installed; refer to the article below to upgrade your current package: How to upgrade SharinPix package
In SharinPix Permissions, create a new record or edit an existing permission.
Open the Upload section and set the maximum file size in Megabytes.

On a SharinPix Album, add the ID or Name of the SharinPix Permission record, which includes the maximum file size.
In this example, the custom permission was named Maximum File Size of 2MB. It has been set in the Custom Permissions Id or Name parameter of a SharinPix Album component.

Tip:
The above will also work for a SharinPix Single Image. The custom permission created should then be defined as a Single Image Permission.
Now, the file will not be uploaded, and an alert will appear during upload if it exceeds the maximum file size set for the permission.

Was this helpful?

