Untitled
unknown
plain_text
2 years ago
482 B
5
Indexable
$fileContents = Storage::get('path_to_your_file'); $response = Http::withBasicAuth($username,$password)->post('api_endpoint', [ 'multipart' => [ [ 'name' => 'file_field_name', 'contents' => $fileContents, 'filename' => 'desired_filename.ext', ], [ 'name' => 'text_field_name', 'contents' => 'Your text input value', ], // You can add more fields as needed ], ]);
Editor is loading...