Skip to content

Instantly share code, notes, and snippets.

View harrisonhenri's full-sized avatar

Harrison Henri dos Santos Nascimento harrisonhenri

  • Compass UOL
  • Bahia, Brazil
View GitHub Profile
@komyg
komyg / k8s-cheat-sheet.md
Last active November 21, 2023 10:24
Kubernetes Cheat Sheet
@maxivak
maxivak / __upload_file.md
Last active April 4, 2024 10:07
PHP upload file with curl (multipart/form-data)

We want to upload file to a server with POST HTTP request. We will use curl functions.


// data fields for POST request
$fields = array("f1"=>"value1", "another_field2"=>"anothervalue");

// files to upload
$filenames = array("/tmp/1.jpg", "/tmp/2.png");