forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: CliffDillard on March 20, 2006, 04:07:19 am

Title: Batch Upload question
Post by: CliffDillard on March 20, 2006, 04:07:19 am
New user, new installation
I am trying to use the batch upload function
I set up a folder:  /coppermine/albums/uploads
and I uploaded some photos to that folder (uploads)
But when I click on the Batch Add Files button I continue to get the message
There are no folders inside the "albums" folder yet. Make sure to create at least one custom folder within "albums" folder and ftp-upload your files there. You mustn't upload to the "userpics" nor "edit" folders, they are reserved for http uploads and internal purposes.
What am I missing?
Thanks
Title: Re: Batch Upload question
Post by: jflash on March 23, 2006, 11:29:23 am
I had same error. Do you use coppermine on microsoft filesystem (FAT, NTFS) ? I made some changes in minibrowser.php:
   $base_folder = rtrim(cpg_get_webroot_path(), '/').'/';
i change to
   $base_folder = rtrim(cpg_get_webroot_path(), '/').'';

and
   print '<a href="'.$_SERVER['PHP_SELF'].'?folder='.rawurlencode('/'.ltrim($folder, '/').$key.'/').'&amp;parentform='.rawurlencode($parentform).'&amp;formelementname='.rawurlencode($formelementname).'&amp;no_popup='.$_REQUEST['no_popup'].'&amp;limitfolder='.$_REQUEST['limitfolder'].'&amp;hidefolders='.$_REQUEST['hidefolders'].'&amp;linktarget='.$_REQUEST['linktarget'].'">'.$newline;
i change to
   print '<a href="'.$_SERVER['PHP_SELF'].'?folder='.rawurlencode(''.ltrim($folder, '/').$key.'/').'&amp;parentform='.rawurlencode($parentform).'&amp;formelementname='.rawurlencode($formelementname).'&amp;no_popup='.$_REQUEST['no_popup'].'&amp;limitfolder='.$_REQUEST['limitfolder'].'&amp;hidefolders='.$_REQUEST['hidefolders'].'&amp;linktarget='.$_REQUEST['linktarget'].'">'.$newline;

Seems problem in - /

Someone knows a better way?
Title: Re: Batch Upload question
Post by: Joachim Müller on March 23, 2006, 07:22:11 pm
@CliffDillard: your issue may or may not be related. Do exactly as suggested in the upload troubleshooting section of the docs.
Title: Re: Batch Upload question
Post by: CliffDillard on April 09, 2006, 04:45:00 pm
The recommendation from JFlash worked.   Thanks