gform_file_upload_status_markup

Description

JavaScript filter allowing the file upload markup to be filtered as it is being uploaded.

Usage

<script>
gform.addFilter( 'gform_file_upload_status_markup', function( statusMarkup, file, size, strings, removeFileJs, up ) {
    // Customize statusMarkup as desired.
    return statusMarkup;
} );
</script>

Parameters

Examples

<script>
gform.addFilter( 'gform_file_upload_status_markup', function() { 
    return '<div id="{0}" class="ginput_preview">{1} <span style="color:#f00;">{2}</span> <b></b> <a href="javascript:void(0)" title="{3}" onclick="{4}" onkeypress="{4}">{5}</a></div>';
} );
</script>

Since

This filter was added in Gravity Forms version 2.4.8.3.

Source Code

This filter is located in gravityforms/js/gravityforms.js.