Page 1 of 1

Coppermine: Batch upload says you have no files.

Posted: Mon Nov 28, 2005 11:33 pm
by jasonb
This only affects Windows hosts. The series of steps comes from discussion of the 1.4 beta. (It still hasn't been fixed in 1.4.2.)

In include/functions.inc.php, FIND (around line 2681):

Code: Select all

    $filename = ltrim(strrchr($_SERVER['PHP_SELF'], '/'), '/');
REPLACE WITH:

Code: Select all

    $filename = ltrim(strrchr('/' . $_SERVER['PHP_SELF'], '/'), '/');
In searchnew.php, FIND (around line 551):

Code: Select all

    $iframe_startfolder .= str_replace('searchnew.php', '', __FILE__).rtrim($CONFIG['fullpath'], '/').'/';
REPLACE WITH:

Code: Select all

    $iframe_startfolder .= rtrim($CONFIG['fullpath'], '/').'/';
In minibrowser.php, FIND (around line 177):

Code: Select all

        print '<a href="'.$linktarget.'?startdir='.rtrim(str_replace($_REQUEST['limitfolder'], '',$folder), '/').'" 
REPLACE WITH:

Code: Select all

        print '<a href="'.$linktarget.'?startdir='.trim(str_replace($_REQUEST['limitfolder'], '',$folder), '/').'"