diff --git a/components/browser_kit.rst b/components/browser_kit.rst index a55134293a0..7bafa322643 100644 --- a/components/browser_kit.rst +++ b/components/browser_kit.rst @@ -109,6 +109,9 @@ method (which makes the needed HTTP POST request to submit the form contents):: $form['login'] = 'symfonyfan'; $form['password'] = 'anypass'; + // To upload a file, the value should be the absolute file path + $form['file'] = __FILE__; + // submit that form $crawler = $client->submit($form);