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:

Prerequisite:

Before using this feature, ensure:

Creation of SharinPix Permission

  • In SharinPix Permissions, create a new record or edit an existing permission.
  • Open the Upload section and add a value for 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 when uploading if it is larger than the maximum file size set for the permission.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.