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.

Comments

mikeytown2’s picture

Error from watchdog

array_merge_recursive() [<a href='function.array-merge-recursive'>function.array-merge-recursive</a>]: recursion detected in /.../includes/module.inc on line 473.
mikeytown2’s picture

StatusFileSize
new7.69 KB

Got a screen shot of the error

mikeytown2’s picture

K, 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.

mikeytown2’s picture

Title: Duplicate Zip File » Zip with lots of files -> Http 0 Error

Processing one file at a time would fix this error I think. Create an array of files in the zip, iterate through it, del zip.

mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new9.52 KB

With some help from here I've created the attached patch. It has been committed.
http://php.net/manual/en/ref.zip.php#96038

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.