WordPress.org

Support

Support » Plugins and Hacks » Every user upload files to their respective directory.

Every user upload files to their respective directory.

  • Specify a directory for every upload is one of my purposes right now. So i was wondering how to do this.

    Eg1: User1 wanted to upload an image, so he uploaded it, and then the file will be stored at /wp-content/user1/myfile.jpg

    Eg: User2 wanted to upload a video, so he uploaded it and decided to create a subfolder in his folder. So the video will be at /wp-content/user2/videos/hisvideo.mpg

    Those two examples are different. The second one requieres more implementation of course but it will be really nice if we can have acces to it.

    In fact, i was wondering to modify the code in the “upload” button and then make some kind of call to the_author and search for the folder of the_author.

    I don’t have much time right now to play with the code… But i really was wondering if therĂ©’s a plugin for this or maybe someone can help me.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Every user upload files to their respective directory.’ is closed to new replies.