public
Created

Upload Test Script

  • Download Gist
output on failing machine
1 2 3 4 5 6 7 8 9 10 11 12
array(1) {
["gameimage"]=>
array(1) {
["name"]=>
string(10) "simple.pdf"
}
}
 
<hr><form name="upload-image-form" enctype="multipart/form-data" method="post">
<input type="file" name="gameimage" size="30" />
<input type="submit" value="Submit" />
</form>
output on working machines
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
array(1) {
["gameimage"]=>
array(5) {
["name"]=>
string(10) "simple.pdf"
["type"]=>
string(15) "application/pdf"
["tmp_name"]=>
string(14) "/tmp/phpmJ0EkJ"
["error"]=>
int(0)
["size"]=>
int(60911)
}
}
<hr><form name="upload-image-form" enctype="multipart/form-data" method="post">
<input type="file" name="gameimage" size="30" />
<input type="submit" value="Submit" />
</form>
test.php
PHP
1 2 3 4 5 6
<?php
var_dump($_FILES);
?><hr><form name="upload-image-form" enctype="multipart/form-data" method="post">
<input type="file" name="gameimage" size="30" />
<input type="submit" value="Submit" />
</form>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.