My simple HTML uploader doesn't work. WHY?

robe

New Member
I created simple multifile uploader with html and php. I'm doing it in kohana php framework.Here's the code:\[code\]<form method="post" enctype="multipart/form-data" action="/test/test_uploader"> <input type="file" class="btn btn-mini" name="report_1" /> <input type="file" class="btn btn-mini" name="report_2" /> <input type="file" class="btn btn-mini" name="report_3" /> <button type="submit" class="btn btn-primary">Zatwierd?</button> </form>\[/code\]test/testuploader code:\[code\]print_r($_FILES);\[/code\]When I try to upload something, it always shows:\[code\]Array ( [report_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [report_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [report_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ))\[/code\]It just doesn't upload. WHY?!
 
Back
Top