Welcome Guest, Not a member yet? Register   Sign In
Upload library error message
#1

[eluser]xwero[/eluser]
Hello,

It's a little bug but it confused me for a while.

I got the message : Unable to find a post variable called userfile.
The error was that i didn't add the enctype="multipart/form-data" but i was looking in the post array and there was the userfile present.

Maybe the error message could be changed to : Unable to find a files variable called userfile. Which is also more accurate.
#2

[eluser]cereal[/eluser]
I don't know if you solved, but this happens because your script starts before you send something through the form, just write a little rule like this in your view page:

Code:
<?php echo ($_SERVER['REQUEST_METHOD'] == 'POST') ? $error : NULL; ?>

Bye Wink




Theme © iAndrew 2016 - Forum software by © MyBB