• Go to Formidable Forms Official Site
  •  Login
  •  

Log In

Forgot Password

Search

Formidable Forms Community Site

David Dachauer

Upload Path Modification

I added the following code to change the upload path/folder for form ID 12. When I test the form by uploading a file, the file name shows up in the entries list and is linked to the right file path, however the file is not actually there, i.e. it's not there when looking via FTP client and clicking the link to the file returns a 404. It's like it's partially working, but writing the file to the location fails. Here's the code I added to the functions.php file: add_filter( 'frm_upload_folder', 'frm_custom_upload', 10, 2 ); function frm_custom_upload( $folder, $atts ) { if ( $atts['form_id'] == 12 ) { // change to your form id $folder = $folder . '../wp-content/uploads/product_images/'; } return $folder; }  

Navigation

  • Privacy Policy
  • Formidable Forms for WordPress

Discussions

  • An add-on
  • Creating posts/pages
  • Emails
  • Entries
  • Filter & Action Hooks
  • Forms
  • Getting Started
  • Importing/Exporting
  • Javascript
  • Reports, Graphs and Statistics
  • Styles
  • Styling
  • Tips & Tricks
  • Views

Disclaimer

The purpose of this site is to help members of the Formidable Forms Community interact with one another, provide examples of custom code and help others with topics that may not be covered by support on the main Formidable Forms website. If you are seeking support from the Formidable Forms team, please create a ticket on the Formidable Forms website.

Copyright © 2021 Strategy11, LLC