Title: Gravity forms?
Last modified: August 21, 2016

---

# Gravity forms?

 *  [myhero](https://wordpress.org/support/users/myhero/)
 * (@myhero)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/gravity-forms-6/)
 * Hi,
 * Is this compatible with Gravity forms?
 * [http://wordpress.org/plugins/custom-upload-dir/](http://wordpress.org/plugins/custom-upload-dir/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Hassan](https://wordpress.org/support/users/hassanhamm/)
 * (@hassanhamm)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/gravity-forms-6/#post-3985298)
 * Have you tried it?
 *  [bernardberry646](https://wordpress.org/support/users/bernardberry646/)
 * (@bernardberry646)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/gravity-forms-6/#post-3985348)
 * I use Gravity Forms and you could simply set Gravity Forms to upload to the path
   you want, and not worry about having to set anything with this plugin ‘to work
   with’ another plugin.. if that makes sense to you. The point is to not try and
   make another plugin work with or rely on another = limits your probs should ONE
   of them not work / gets updated / you uninstall one / etc.
 * **So you could simply use:**
 *     ```
       <?php
       add_filter("gform_upload_path", "change_upload_path", 10, 2);
       function change_upload_path($path_info, $form_id){
          $path_info["path"] = "/home/public_html/yourdomainfolder/new/path/";
          $path_info["url"] = "http://yourdomainhere.com/new/path/";
          return $path_info;
       }
       ?>
       ```
   
 * The above is called a filter, you put that in your theme’s **function.php**
 * Also, at minimum security I would drop a blank index.html file in that folder
   also. There are a number of other ways to more soundly protect someone from directly
   listing the folder, the blank index is ONLY if someone tries the folder without
   calling on a file/page.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Gravity forms?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-upload-dir.svg)
 * [Custom Upload Dir](https://wordpress.org/plugins/custom-upload-dir/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-upload-dir/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-upload-dir/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-upload-dir/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-upload-dir/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-upload-dir/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [bernardberry646](https://wordpress.org/support/users/bernardberry646/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/gravity-forms-6/#post-3985348)
 * Status: not resolved