GravityKit\GravityMigrate\Schema\FileUploadLimits
The values every platform's upload limits are converted through.
These have to agree across the import and export sides or a limit changes meaning as it travels: a size written in bytes and read back as megabytes turns an 8 MB cap into an 8 byte one, which rejects every file while looking like a working setting.
Since: %ver%
Source: src/Schema/FileUploadLimits.php:19
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate\Schema
Methods
| Method | Description |
|---|---|
every_allowed_extension() | Every file extension WordPress lets this site upload, which is what an unrestricted |
Method Reference
every_allowed_extension()
public static function every_allowed_extension(): array
Every file extension WordPress lets this site upload, which is what an unrestricted
Gravity Forms upload accepts.
An empty allowedExtensions is not "any file": GF_Field_FileUpload::validate() falls through to GFCommon::check_type_and_ext() (class-gf-field-fileupload.php:1998-1999), which is WordPress's own allowed-mime check. A destination that reads an empty list as its own narrower default has to be handed this list to mean the same thing.
Returns
string[]— Lowercase extensions, in the order WordPress lists them.
Since: %ver%
Source: src/Schema/FileUploadLimits.php:73