• Hi Peeps! Happy New year!

    So I am having a big of a problem, currently one of our php files that we bought points to the default uploads directory for wordpress and we would like to change this to our own uploads directory.

    We are still using the default uploads directory for wordpress but we want to change the directory where this custom php file uploads to.

    Currently the code looks like this:

    $upload_dir = wp_upload_dir();
    $upload_dir['basedir'].'/downloads/encrypted/'.$item.'/*'));

    It currently looks like this “www.example.com/wp-content/uploads/downloads/encrypted/”

    We want it to point to “www.example.com/downloads/encrypted/”

    Have looked into the arrays for wp_upload_dir(); but cannot seem to go a folder back. Any tips or help?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • In your blog’s admin, Settings > Media (wp-admin/options-media.php) you can manually provide the FULL URL PATH to the upload dir. Did you try that, simply ? 🙂

    Thread Starter lilapmedia

    (@lilapmedia)

    Hi Sabinoo,

    We want to have separate upload directories. our programmer is currently away until February 2014 so need to do this now.

    We still use the default uploads directory and do not wish to change that but with this script that uses `$upload_dir = wp_upload_dir();
    $upload_dir[‘basedir’].’/downloads/encrypted/’.$item.’/*’));`

    We want this script to point to example.com/downloads/encrypted

    Thread Starter lilapmedia

    (@lilapmedia)

    Would anyone know a simple way of making this work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upload Directory question’ is closed to new replies.