I was with the same error until now. As I saw this question with that poor answer I needed to help.
It is a little bit old question but here the solution:
First thing, the error. Your output ways that you have 2 files, the first with Error 1, and the second with Error 0. In the documentation we have this explanation about the error value:
UPLOAD_ERR_OK
Value: 0;
There is no error, the file uploaded with success.UPLOAD_ERR_INI_SIZE
Value: 1;
The uploaded file exceeds the upload_max_filesize directive in php.ini.
Second, knowing that your error is about the size of your archive, you will need just to increase the upload_max_filesize
on your php.ini
file.
It's a little bit simple, but you can do better.
If you put this on your upload-form:
<input type="hidden" name="MAX_FILE_SIZE" value="12000" />
You will check the size of the file BEFORE the upload. It's not best thing to control the max size of the upload(it can be cheated simply), but it will help your user to know that his file is too large, without needing to upload it.
See here more informations about PHP Upload.
Finnaly, restart your php. Here I use php5-fpm.
# service php5-fpm restart
Hint: Don't use the exact size that you want to upload in the php.ini, I use some MBs more than that I want. Then I treat it in my code. This will remove the error and you can treat as you wish in your application. ex: if you have files with 12M, put 20M.
OBS.: With multiple files, I don't really know if sum size or not.