Welcome Guest, Not a member yet? Register   Sign In
$this->upload->data()
#1

[eluser]mrmeyers99[/eluser]
This isn't really a bug, just an unexpected behavior. A note in the documentation about this would probably suffice.

In my code was doing this:

Code:
$upload_data = $this->upload->data()
if ($upload_data['file_name'] == '')
// do something
I thought that $upload_data['file_name'] would contain the file name even if the upload wasn't successful, like if the file was too big. It took me awhile to figure out that I actually needed to use the $_FILES array to figure out if something was uploaded or not.

Anyway, just a suggestion to put a note about that in the documentation.




Theme © iAndrew 2016 - Forum software by © MyBB