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:
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
Open the Upload section and set the maximum file size in Megabytes.
Assign the SharinPix Permission to the Album component
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.
Demo
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.