-2

I have an input (id = fileFaq / type="file"), how can i get the binary file of the image uploaded?

I have this array, which will be send (POST) via PHP cURL:

ARRAY

And i really think i need to add the binary file at array['file'], so the image can be send correctly.

Dave
  • 5,108
  • 16
  • 30
  • 40
Vitor Mascia
  • 109
  • 2
  • 9

1 Answers1

0

From the looks of it, you want...

$binary = file_get_contents($_FILES['UPLOADEDFILENAME']['tmp_name']);

Not quite sure about how to send the data via curl as (from my knowledge anyway) it depends on the receiving end.

coder42
  • 92
  • 10