title: Rename files during upload within Wordpress and Gravity Form
body: <p>Renaming the file is working as instructed here <a href="https://stackoverflow.com/questions/13751377/rename-files-during-upload-within-wordpress#comment18984378_13751828">Rename files during upload within Wordpress</a></p>
  
  <p>In my scenario all files will be uploaded via a gravity form on a page (<code>/upload</code>).</p>
  
  <p>This method is naming every file <code>Upload.mp3</code> instead of <code>Post Name.mp3</code>.</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/6owds.png" alt="custom field value"></p>
  </blockquote>
  
  
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/KrJSI.png" alt="permalink"></p>
  </blockquote>
  
  <p>Can this method be modified to work in my scenario?</p>