When I try to upload files using jQuery File Upload, everything works as planned for any number of files up until 5. When I try to POST 5 or more files the server responds with a 404 Not Found, but POSTing 4 files to the same URL it upload and processes perfectly fine. What could be the issue?
I'm running nginx, php-fpm, and laravel. I even set client_max_body_size to 0 after trying high limits.
Access Log for 4 Files:
192.168.1.144 - - [14/Jan/2014:10:49:28 -0500] "POST /admin/job/1 HTTP/1.1" 302 449 "http://192.168.1.100:8080/admin/job/1/edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36" "-"
Access Log for 5 Files:
192.168.1.144 - - [14/Jan/2014:10:45:01 -0500] "POST /admin/job/1 HTTP/1.1" 404 223 "http://192.168.1.100:8080/admin/job/1/edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36" "-"
Attached are images of the console in chrome.
5 Image Upload Test

4 Image Upload Test

Edit: Code for POST Route :
public function update($id)
{
$input = \Input::except('photos');
$job = \Job::findOrFail($id);
$job->fill($input);
if(Input::hasFile('photos'))
{
$photos = Input::file('photos');
/**
*@var $photos Uploadedfile[]
*/
foreach ($photos as $index => $photo)
{
$fileName = \Str::random(8) .'.'. $photo->getClientOriginalExtension();
$file = $photo->move(public_path() .'/job_images/', $fileName);
$jp = new \Job\Photo(array('image' => $fileName, 'description' => $input['description'][$index]));
$job->photos()->save($jp);
}
}
$job->save();
return Redirect::route('admin.job.show', $id);
}