WordPress Code Snippets

A fresh mix of code snippets and tutorials

Structure of $_FILES array


Working with USP Pro involves a lot of $_FILES manipulation. I tend to forget how the array is structured, so I’m posting it here for ez reference.

$_FILES array

Here is the structure of a typical $_FILES array:

Bonus: getimagesize array

Often used in conjuction with $_FILES, PHP’s getimagesize function reveals a wealth of file data. Here is the general structure of its array:

That’s all folks.

Show Support

Like our new Facebook Page to show support!