Gravity Forms Advanced File Uploader
[resolved] Upload image into sub-directory depending on gravity form field value (5 posts)

  1. laichejl
    Posted 1 year ago #

    I'm currently using the advanced file uploader plugin in conjunction with a "media file manager" plugin that creates sub-directories within the uploads folder. Our client wants to separate content in the library this way.

    So, they want functionality on the site where a user can upload straight to the media library, but based on what they choose for a "category" field in the form, the image will upload to the corresponding sub-directory within uploads.

    Is there a simple way to do this? I tried tinkering with some of the plugin core files but couldn't get it to work.


  2. ben.moody
    Plugin Author

    Posted 12 months ago #

    Hi \
    You can use the following filter in your functions.php file to edit the file destination for each upload:

    apply_filter( 'prso_gform_pluploader_wp_upload_dir', $wp_upload_dir );

    $wp_upload_dir should be an array where $wp_upload_dir['path'] is the base directory for the file upload

  3. tareqhi
    Posted 4 months ago #

    how to change uploaded file name based on another filed value?

  4. ben.moody
    Plugin Author

    Posted 3 months ago #


  5. tareqhi
    Posted 3 months ago #

    You should not close the topic without giving proper answer & support

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic