If the zipfile being uploaded fails, and then you try to re-upload the same file it throws a Javascript Error. Renaming the zip file solved the problem. Maybe doing a check for a duplicate name before saving the upload, and adding a # to the end of it would solve the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | imagefield_zip-362979-5.patch | 9.52 KB | mikeytown2 |
| #2 | js-error.png | 7.69 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedError from watchdog
Comment #2
mikeytown2 commentedGot a screen shot of the error
Comment #3
mikeytown2 commentedK, the error is a memory error & GD. I was trying to upload 36 files in one zip, splitting it up into 3 zips and the problem goes away. My guess is ImageMagick wouldn't have this problem.
Comment #4
mikeytown2 commentedProcessing one file at a time would fix this error I think. Create an array of files in the zip, iterate through it, del zip.
Comment #5
mikeytown2 commentedWith some help from here I've created the attached patch. It has been committed.
http://php.net/manual/en/ref.zip.php#96038