Upload

The Upload block in Greyd Forms allows you to insert a file upload input field into your form. After inserting the block, you can edit both the label and the placeholder text directly within the editor interface.

Screenshot of Upload button in the editor.

Settings

Screenshot of the Settings tab of Upload button, explained in the following paragraphs.

Under the General section, you can adjust the automatically prepopulated field name that will be submitted with the form. Additionally, you can configure the field to be required by enabling the corresponding option.

The File settings section offers configuration options related to file uploads. You can define which file types are allowed by selecting from a predefined list, including ZIP archives, PDFs, text files, audio, video, and images. There’s also a custom option where you can enter one or more specific types manually, by using the correct file endings like .xlsx, .xls or .doc. Allowing “All file types” poses a security risk and should only be used with caution.

You can also set the maximum file size (in megabytes) that users are allowed to upload. This value is defined via a numeric input field. Please note that this limit is additionally constrained by your server’s PHP configuration, specifically the upload_max_filesize and post_max_size values in the php.ini file on your server or hosting environment.

In the Icon subsection, you can select an icon using the icon picker. See the Button Icon Control component for more details.

The Assistance section provides a tooltip input. There’s a default tooltip provided and you can overwrite it in this input field.

The block also supports Animations. In the Advanced section, you can find settings for additional CSS classes, the Greyd Styles Class and toggles to hide the block per breakpoint.

Styles

Screenshot of the Styles tab of Upload button, explained in the following paragraphs.

Under Styles, you can choose between two base styles — “Primary field” and “Secondary field” — as defined in the global styles. These presets allow consistent styling across multiple forms.

In the Dimension section, you can set padding and margin values using the native Core controls.

Under Label, you can adjust the font size and color of the field label. For the font size there are multiple options available, see the Range Unit Control component documentation.

The Width section allows you to control the field’s width. It’s also providing multiple options with the Range Unit Control component.

Within Individual field, you can enable a switch to override the global design settings. See the Custom Button Styles component documentation for more details.

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Last updated: