I would like to display images preview on multiupload. This was possible till some time, but for some reason you added GFCommon::random_str( 16 ) in upload.php
it is now not possible to get the temp image name with gform.addFilter('gform_file_upload_markup' 'x')
Is there any other way to get the thumbnail preview please?
Thank you for the reports. We’ve opened an issue for the product team to address this issue. The best place to report issues or ask questions like this would be a support ticket, to assure it receives the proper attention:
This new build adds a sixth parameter to the JS version of the gform_file_upload_markup filter, response, which includes the temporary filename and can be accessed like so:
gform.addFilter( 'gform_file_upload_markup', function( html, file, up, strings, imagesUrl, response ) {
var temp_name = rgars( response, 'data/temp_filename' );
// Do something with the temp_name.
return html;
} );