Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change default upload folder
#4
ccagle8 Wrote:i haven't tested it, but you should be able to set the define() variable in /admin/inc/common.php to a specific folder. If that works, we can maybe setup a gsconfig option to set an alternative path (just like we did with the /admin/ folder')

It didn't work but the following code in the upload.php is the cause (I assume).

Code:
if (isset($_GET['path'])) {
    $path = str_replace('../','', $_GET['path']);
    $path = tsl("../data/uploads/".$path);
    $subPath = str_replace('../','', $_GET['path']);
    $subFolder = tsl($subPath);
} else {
    $path = "../data/uploads/";
    $subPath = '';
    $subFolder = '';
}
Reply


Messages In This Thread
Change default upload folder - by datiswous - 2012-03-01, 09:02:05
RE: Change default upload folder - by shawn_a - 2017-12-09, 00:37:28
RE: Change default upload folder - by MaryUser - 2017-12-09, 10:02:52
RE: Change default upload folder - by jjancel - 2024-03-07, 02:45:44
RE: Change default upload folder - by islander - 2024-03-07, 03:17:53
RE: Change default upload folder - by jjancel - 2024-03-07, 04:35:45
RE: Change default upload folder - by islander - 2024-03-07, 19:27:46
Change default upload folder - by Connie - 2012-03-01, 18:35:24
Change default upload folder - by ccagle8 - 2012-03-02, 02:18:37
Change default upload folder - by datiswous - 2012-04-02, 10:00:56
Change default upload folder - by benrusso - 2012-08-21, 06:23:32
Change default upload folder - by benrusso - 2012-09-07, 08:39:06
RE: Change default upload folder - by MaryUser - 2017-12-08, 15:59:54



Users browsing this thread: 1 Guest(s)