RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 03, 2008, 11:48:32 pm
+  RSGallery2 Support Forums
|-+  Developers corner
| |-+  Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened! (Moderators: Daniel Tulp, Chef Groovy)
| | |-+  [SVN570] batch upload doesn't work]
Advanced search
  « previous next »
Pages 1
Author
Topic: [SVN570] batch upload doesn't work]  (Read 4067 times)
« on: January 31, 2007, 06:40:06 pm »
suptouch Offline
Newbie
*
Posts: 2



First I've tried with the alpha 1.12.1.
Now, I work with  the last SVN570

When I upload one image to a category, it's work.
When I try to batchupload a ZIP file, select the file and the category, do next, I arrive on the next page (with an upload button), but no images are displaying.
If I llok in the images managemen, no image seem uploaded !

Many guy's seen to have problems with the batch upload, is-it tee same problem ? Can I correct it ?
Logged
 
Reply #1
« on: February 12, 2007, 10:30:42 pm »
Jonah Offline
Administrator
Hero Member
*****
Posts: 1414



Are you still able to reproduce the problem with the latest SVN?  If so, please read http://rsgallery2.net/content/view/13/21#largeupload and let us know if that helps.
Logged

Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.
 
Reply #2
« on: February 13, 2007, 05:38:24 pm »
Cony88 Offline
Newbie
*
Posts: 4



Hi,

I had same problem but now from [svn580] (I guess) with the combination of copy and move_uploadd_file
it start to work. The only bad thing is that in batch upload, all the uploaded files will remain in media folder.

I think that in function importImage  in img.utils.php the code should be something like this

Code:
        if ( !copy($imgTmpName, $destination) ) {
            if( !move_uploaded_file( $imgTmpName, $destination )){
                    imgUtils::deleteImage( $newName );
                    return new imageUploadError( $imgName, "could not copy $imgTmpName image to: $destination" );
                }
        } else
          unlink($imgTmpName);

I add the else statement with unlink, so when the file is copied (not moved by move_uploaded_file) then the source is deleted.

regards

Cony88
Logged
 
Print  Pages 1
« previous next »
Jump to: