Search code examples
wordpressgravity-forms-plugin

GravityForm preview thumbnails for the multifile upload field


I want to display the preview thumbnail of the multifile upload field. I had followed this thread but I found that {fileName} had some random string. It’s between {input id} and {file.target_name}.

Ex: 4a017277_input_5_zfKuGrwCd91CyiHy_o_1esroacel59uais19ev1dqa405q.png.

What is {zfKuGrwCd91CyiHy}?

tmp image's name

2


Solution

  • I had found a solution for this. It's not a beautiful way but it worked like a champ. The random string above was rendered by a function random_str(). My solution is to remove or customizing the function. File located at path: ../wp-content/plugins/gravityforms/includes/upload.php

    enter image description here