Search.../

fileLimit

Sets or gets the maximum amount of files a site visitor can upload at a time.

Description

Setting the fileLimit property sets the maximum amount of image, video, or gallery files that a site visitor can upload at a time. The value of fileLimit defaults to 1. It can be set to a number from 1 to 30.

Note that this property isn't yet supported for audio and document files, and the value of fileLimit is restricted to 1.

Getting the fileLimit property returns the number of files that a site visitor can upload at a time.

Type:

numberRead & Write

Was this helpful?

Gets the maximum amount of files a site visitor can upload at a time

Copy Code
1let fileLimit = $w("#myUploadButton").fileLimit;
Sets the maximum amount files a site visitor can upload at a time

Copy Code
1$w("#myUploadButton").fileLimit = 3;