Skip to content
Advertisement

Codeigniter empty $_POST & $_FILES

I’m using Plupload to manage file uploads for my site. When I configure Plupload to post to the following test file, the records are shown correctly, however when I post to a CI controller, both $_POST and $_FILES are empty.

test.php

JavaScript

CI does correctly display the $_FILES and $_POST arrays when using a standard HTML form, so any ideas what’s causing this?

EDIT here is the plupload config

JavaScript

and here is the controller

JavaScript

Advertisement

Answer

Most probable cause for this is bad mod rewrite rules. If you are using any, try disabling them and post your data again.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement