[MOD] MultiUpload
- This mod enables the users to add multiple files to a category at once.
- The images will get name and index, ie. "My pet", "My pet 2", "My pet 3",...
- for 4images 1.7.1...
I have had this mod installed for a short while - now for whatever reason I am starting to get errors when I upload multiple files, and I am not quite sure of why. Your mod doesn't even touch the annotate.php, but this is the error message I am receiving when attempting to upload multiple files:
Fatal error: Cannot redeclare ann_rename() (previously declared in /home/www/public_html/imaging/includes/annotate.php:9) in /home/www/public_html/imaging/includes/annotate.php on line 9
Line 9, 10, 11, 12, 13, 14 & 15 are as following:
9 function ann_rename($old, $new){
10 $oldWD = getcwd();
11 chdir(realpath(dirname($old)));
12 $ok = (rename(basename($old), basename($new))) ? 1 : 0;
13 chdir($oldWD);
14 return $ok;
15 }
Any ideas on how to fix the error? It appears to have a problem renaming the file after uploading it.