coppermine-gallery.com/forum

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 JUpload by etienne_sf => Topic started by: totalcollection on September 24, 2008, 12:25:55 PM

Title: How Do WE Get Rid Of Duplication?
Post by: totalcollection on September 24, 2008, 12:25:55 PM
I am really impressed at how JUpload can help the uploading process which save me from doing ftp one. Anyway, I seems to receive duplication of files uploaded that I have to delete them which takes even more time!

Any idea of this error?

Thx
Title: Re: How Do WE Get Rid Of Duplication?
Post by: etienne_sf on September 24, 2008, 09:26:38 PM
No idea,

  You're the first one to indicate this problem.

  Are you sure the picture exists only once in the applet list, before upload ?


If there is really a problem, you'll have to give more info. I need to reproduce the problem, in order to correct it.

Etienne
Title: Re: How Do WE Get Rid Of Duplication?
Post by: totalcollection on September 26, 2008, 05:20:08 PM
I first thought like you said. But after I was unable to delete the duplication picture, this seems to me the thumbnails were produced by JUpload.
The following is the error messages while I was trying to delete them:
Script called without the required parameter(s). (aid33) 

PS: All pictures there http://totalcollection.info (http://totalcollection.info) were uploaded by JUpload.
Here is the screen attached.
Title: Re: How Do WE Get Rid Of Duplication?
Post by: etienne_sf on September 26, 2008, 09:24:12 PM
Your pictures are excellent!

  But you'll have to give more info, if you want help.
Can you explain to me a way to repeat the problem, and I'll correct it.

  Otherwise, I can't do anything.

Etienne
Title: Re: How Do WE Get Rid Of Duplication?
Post by: totalcollection on September 27, 2008, 11:45:52 AM
Well, the upload at my first attempt was about 100 pictures in row, then it failed. So I tried 10 each, and it succeeded. I wonder if my first try already loaded some of them though I showed as failed. Any idea?
Title: Re: How Do WE Get Rid Of Duplication?
Post by: etienne_sf on September 28, 2008, 10:25:39 AM
It looks like we have an explanation now. Here is how the applet works, when embedded in the Coppermine plugin:
1- Identification of the list of files to upload. Basically: the files you can see in the file list.
2- File by file: upload to the server
3- Once all files are uploaded: redirection to a page, where you can edit the uploaded pictures.


So, if there is an error while uploading the 5th picture, the four first are uploaded on the server, and attached to the Coppermine's database. You can then do two things:

a- Re-upload the same pictures. Then, the four first will be duplicated, as they are already uploaded.
b- Click again on the upload button. It may be available or not, depending on the error that occurs. In this case , the applet resumes upload, with the non-uploaded pictures.  You can have a duplication or not here, depending on where the error occurs:
b1- Error while uploading the picture. Then the picture was not on the server, and there is no duplication when uploading it again.
b2- Error in the server: may be in b1 or b3 case.
b2- Error while reading the server response. Then the server has been properly uploaded, but the applet can't know it. If you click on upload again, the applet will upload again the picture. You'll have a picture duplication.

Now, the real problem is why did you have upload error ?

  I can't help you there without more information...

Etienne
Title: Re: How Do WE Get Rid Of Duplication?
Post by: totalcollection on September 30, 2008, 06:39:23 AM
The problem is I tried to upload to many pictures, I guess. So the server response time was lost during the uploading. Anyway, I can see that the progress bar got to an end before the error occurred.