tags:

views:

84

answers:

1

Hello,

Does anyone have experience with this

I wanted to use $_files in my class

like

$Uploadfile= $_FILES['file'];

but then the script errors

I thought superglobals were acccessible anywhere

thanks, Richard

+3  A: 

Yes, $_FILES is a superglobal, which means that it's accessible from every scope. It's only set if the request actually contains a multipart/form-data body.

troelskn
thanks, actually BraedenP gave me the exact answer. What he sayd was actually, that I had to assign this to a variable from within a class function. Problem Solved.
Richard