0

I am receiving uploaded file in PHP $_REQUEST Super global , as per my knowledge $_FILES contains all the information of uploaded file and $_REQUEST contains $_POST,$_GET,$_COOKIES.

Also I am getting an empty $_FILES array for same request.

In PHP 4.3 version $_REQUEST contains file Information but I am using PHP version 5.4.11

How can it is possible?

Ekky
  • 792
  • 4
  • 14
  • 29

2 Answers2

0

As per the documentation here:

4.3.0 $_FILES information was removed from $_REQUEST.

Prisoner
  • 27,391
  • 11
  • 73
  • 102
0

Got The answer , actually my colleague (android developer) sending that file after encoding base64 , so that’s why i think $_FILES is empty and $_REQUEST containing file content.

Ekky
  • 792
  • 4
  • 14
  • 29