File Upload Fields
Articles
gform_cleanup_target_dir
The gform_cleanup_target_dir filter is used to bypass functionality that relies on open_dir(), enabling support for the multi-file upload field on servers that don’t support open_dir(), such as WordPress VIP.
gform_field_types_delete_files
Allows additional files to be deleted when file deletion occurs by adding additional field types.
gform_file_path_pre_delete_file
This filter is executed before an uploaded file (from the File Upload or Post Image fields) is deleted from the entry.
gform_file_permission
This filter is executed when uploading a file. It can be used to change the default permissions of uploaded files.
gform_file_upload_markup
The “gform_file_upload_markup” filter in Gravity Forms can be used to modify the HTML for the multi-file upload “preview”.
gform_file_upload_whitelisting_disabled
This filter allows the disabling of file upload whitelisting. This filter applies to all forms.
gform_fileupload_entry_value_file_path
Allows for the filtering of the file path before output.
gform_multifile_upload_field
This filter is used to filter the field object that will be associated with the uploaded file.
gform_permission_granted_pre_download
This filter can be used to perform custom logic to determine if the download URL will allow access to the file.
gform_plupload_settings
This filter allows the initialization settings (file size, file count, browse button, drag and drop, and more) for Plupload to be changed.