• Adam

    (@cscottrun)


    So I am looking to integrate the Media up loader with my theme options panel. I don’t care about where it uploads now – as in you writing a post and you want to upload an image and it goes to its default location for uploaded images, how ever if your on the theme options page it should change the upload path.

    would I do something like:

    if(isset($_GET['page']) && $_GET['page'] == 'page-name'){
          function my_sample_function(){
               return 'path_to_new_folder_for_images';
          }
          add_filter('upload_dir', 'my_sample_function');
    }

    This seems right to me…..but I could be WAYYYYY off…

    [No bumping, thank you.]

  • The topic ‘changing the media uploaders upload path’ is closed to new replies.