Upload folder location

Home \ forums/topic \ Upload folder location

Support Home Page Forums Joomla Software Easy File Uploader Module Upload folder location

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #243
    dlr
    Participant

    Is it possible to upload files to a folder other than “images”? I’d like to have them go to a folder on another hard drive on the web server. Also, could they be uploaded to a NAS drive (mapped or not)?

    Thanks

    #1461
    dlr
    Participant

    OK… I’ve partially solved my problem!

    I created a root folder on my 2nd hard drive, the one that has plenty of space. There are 4 sub-folders within that folder.

    In IIS, I created a virtial directory, pointing to the new root folder.

    I modified the mod_easyfileuploader.xml file and replaced ‘directory=”images”‘ with ‘directory=”rootfolder”‘. I also changed the default folder entry to one of the sub-folders. I went into the module settings and the default sub-folder was there. Opening the dropdown showed the 3 other folders. So, the upload location seemd to be set!

    Now, I go to the article and upload a file, with a successful upload message. It is supposed to go into the default sub-folder within the root folder but instead, a folder is created in “images” with the name of the sub-folder and it contains the uploaded file.

    I have restarted IIS via IIS Manager and services… Any idea why it won’t take into account the root folder?

    Thanks

    #1462
    Michael Gilkes
    Keymaster

    @dlr. that was cool of you to make those modifications, especially setting up the virtual directory. You may have to edit the helper.php file a bit. I don’t have access to my code right now, since I am out of town and out of the office, but I think I might have hard coded the images folder in the helper.php file. Have a look, and see if you can figure it out. I try to make my code as self explanatory as possible. If you can’t sort it out, I’ll be happy to help you on Monday when I get back.

    #1463
    dlr
    Participant

    Thanks Michael…

    I changed the folder location in the helper.php file from “images” to “rootfolder” and that did the trick!

    Now, that also means that I can’t use this module in any other article, except to upload files to that same “rootfolder”. It’s not a problem to create as many virtual directories as necessary and it would be great if a future version of your module had a way to allow selecting a destination rootfolder depending on:

    – the article

    – the module position (loadposition)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Upload folder location’ is closed to new replies.