WordPress.org

Forums

Upload to different path (3 posts)

  1. Trippetchz
    Member
    Posted 5 years ago #

    Hi there

    I'd like to edit the media upload files in WordPress 2.9.1 to accept a parameter (on media-upload.php) so that files uploaded using the parameter are uploaded to a hard-coded, different directory other than the default just for that instance when the parameter is used...

    For example:

    Say http://blahblah.com/wp-admin/media-upload.php?type=image uploads to http://blahblah.com/images

    How do I change the system so that:

    http://blahblah.com/wp-admin/media-upload.php?type=image&differentpath=yes

    will upload to http://blahblah.com/different/path/images

    Thanks!

  2. kongkang
    Member
    Posted 5 years ago #

    1. Login to admin
    2. Settings -> Media
    3. Uploading Files - > Store uploads in this folder

  3. Trippetchz
    Member
    Posted 5 years ago #

    Hi there
    Thanks for your reply.

    BUT I'd like to still use the path specified at Settings -> Media -> Uploading Files -> store folder

    It's just that when http://blahblah.com/wp-admin/media-upload.php?type=image&differentpath=yes is called, it uploads to a specified, hardcoded path DIFFERENT to the one specified in Settings -> Media -> Uploading Files -> store folder

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.