Skip to content

[BrowserKit] Add snippet: how to upload a file #9142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2018

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Jan 26, 2018

No description provided.

@@ -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 filename
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..., the value should be the filename -> ..., the value should be the absolute file path ? Otherwise, we'd need to change the __FILE__ example because that doesn't return only the filename.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks

@javiereguiluz
Copy link
Member

Thanks Grégoire.

@javiereguiluz javiereguiluz merged commit 66b6fd0 into symfony:2.7 Jan 31, 2018
javiereguiluz added a commit that referenced this pull request Jan 31, 2018
This PR was merged into the 2.7 branch.

Discussion
----------

[BrowserKit] Add snippet: how to upload a file

Commits
-------

66b6fd0 [BrowserKit] Add snippet: how to upload a file
@lyrixx lyrixx deleted the browser-kit-file-upload branch January 31, 2018 10:08
@xabbuh xabbuh added this to the 2.7 milestone Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants