Coppermine: Batch upload says you have no files.

Technical Q&A involving operating systems, networking, software, and hardware issues.

Moderator: jasonb

Post Reply
User avatar
jasonb
Site Administrator
Posts: 105
Joined: Tue Apr 22, 2003 1:54 pm
Location: Toronto, Canada
Contact:

Coppermine: Batch upload says you have no files.

Post 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), '/').'" 
Post Reply