php curl $ _FILES empty (empty)

0

I try not to bother much with questions. I rarely do them but this is very complex.

I am following the code of: link

I try to send a document using CURL. When executing it, it actually receives a response from the file (php code) that the shipment should receive, but the document is never received.

Printing some variables I realized that $ _FILES is always empty. That is, the file is never sent or at least not actually received.

The result of the code is:

1  Notice: Undefined index: file_contents in /path.../testRecibir.php on line 5
2  path.../test/
3  Notice: Undefined index: file_contents in /path.../testRecibir.php on line 7
4  Possible file upload attack!
5  Here is some more debugging info:Array
6  (
7  )

8  Array
9  (
10    [extra_info] => 123456
11    [file_contents] => @/var/www/html/s1/ea/teste/sample.jpeg
12 )
13 1

No debug information is printed. However, interestingly, the arrangement is printed with the address of where the original document is and which will be sent.

Initially I tried to send and receive from my computer (localhost) and I had the same problem. Now I send from the localhost and to a server that I have but the problem is the same.

Here is some more information about the local host:

Attached server data:

    
asked by Jason 30.07.2018 в 08:11
source

0 answers