Can $ _FILES be super classy to be available in class

Does anyone have any experience with this

I wanted to use $ _files in my class

like

$Uploadfile= $_FILES['file'];

      

but then the script errors

I thought superglobals were available somewhere

thanks richard

+2


source to share


1 answer


Yes, it $_FILES

is superglobal, which means it is accessible from any area. It is only set if the request actually contains a body multipart/form-data

.



+4


source







All Articles