Author Topic: External file storage  (Read 2451 times)

Hitman

  • Newbie
  • *
  • Posts: 13
    • View Profile
External file storage
« on: September 25, 2009, 06:19:22 pm »
Is it possible to change tthe location of the "upload" folder to place it on another volume? I do not want to take the chance of filling up all the space on my server's OS drive by uploading files.

Thanks.

spectra

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: External file storage
« Reply #1 on: October 24, 2009, 07:33:42 pm »
How good are your Linux admin skills. I would try it this way. My disclaimer. Backup your stuff first in case.
I would try a symlink with the same permissions. Don't change the folder name or anything. Symlink to the volume where you have space.

I think that could work.
Spectra - OG Wanna Be | Down since 1.5.3 | Steady rollin with 1.6

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: External file storage
« Reply #2 on: October 25, 2009, 12:26:52 am »
Or you can upload documents as Links, and store them that way
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

Hitman

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: External file storage
« Reply #3 on: November 18, 2009, 01:14:28 pm »
Thanks everyone but I found an easier and more stable way.

In the file OPENGOOROOT/init.php, you can set the path where you want your uploaded files to be stored:

define('FILES_DIR',        ROOT . '/upload'); // place where we will upload project files

You simply have to change the second parameter to the path where you want to store the files and voilĂ !