Upload Max File SIze

Overview

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:

circle-exclamation

Creation of SharinPix Permission

  • In SharinPix Permissions, create a new record or edit an existing permission.

  • 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.

circle-check

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.

Last updated

Was this helpful?