WordPress.org

Ready to get started?Download WordPress

Forums

Download Shortcode
[resolved] Multiple Directory Folder (2 posts)

  1. WPSpeak
    Member
    Posted 1 year ago #

    Hi, how do I use two filters to change the directory of the upload file?

    1. I've a /mp3/ directory that contains all the mp3 file. All of the files will be uploaded by myself, manually through cpanel.

    2. Then, in my Pic CPT, I allow users to upload their own image. In other words, the image will be upload to WordPress default directory, /uploads/.

    The reason for having two different directories is for easier management. I don't want the mp3 files to be mixed with image files. I want both the files in /mp3/ and /uploads/ directory to be able for force-download using this plugin.

    1. Do you have any ideas to achieve this?

    2. I'm thinking of creating subdir of /mp3/ in /uploads/ instead (so it becomes /uploads/mp3/) and put all the mp3 files in it , can this plugin still force-download the mp3 file from the subdir? If the answer is yes, so I guess I don't have to use any filter to change the directory, am I right?

    http://wordpress.org/extend/plugins/download-shortcode/

  2. Drew Jaynes (DrewAPicture)
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    I want both the files in /mp3/ and /uploads/ directory to be able for force-download using this plugin.

    I'm thinking of creating subdir of /mp3/ in /uploads/ instead (so it becomes /uploads/mp3/) and put all the mp3 files in it

    Doing /uploads/mp3/ is the best solution if you want both. You won't need to do any filtering either.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.