CodeIgniter Forums
Ack! $_FILES data shows in $_POST - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Ack! $_FILES data shows in $_POST (/showthread.php?tid=12404)



Ack! $_FILES data shows in $_POST - El Forum - 10-17-2008

[eluser]Benjamin Midget[/eluser]
This is kind of an embarrassing problem as I consider myself a seasoned PHP guy, but all the sudden things are acting so strangely, and I cannot find an answer anywhere. Thus, I'm hoping y'all can help me out.

My $_FILES data is showing up in $_POST for some reason:
Code:
<form enctype="multipart/form-data" action="" method="POST">
    <input type="hidden" name="MAX_FILE_SIZE" value="30000" />
    Send this file: <input name="userfile" type="file" />
    <input type="submit" value="Send File" />
</form>

Even on the most basic form, $_FILES continually shows nothing, and $_POST shows 'userfile' as one of the parts. If I add a file to the form, $_POST['userfile'] is the binary form in all its gibberish splendor.

Can anyone help?


Ack! $_FILES data shows in $_POST - El Forum - 10-17-2008

[eluser]manilodisan[/eluser]
Is this under codeigniter or a separated project? Any custom mods done to your php installation or .htacess files?


Ack! $_FILES data shows in $_POST - El Forum - 10-17-2008

[eluser]Benjamin Midget[/eluser]
This is a problem everywhere all the sudden.

...Oh my gosh! I just solved the problem while typing this:

It's the latest build of Webkit (Oct 15). It's file uploading is broken.

Anyway, thanks for the reply.