Skip to content

File upload is broken when submitting a form... #12485

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

Closed
wants to merge 1 commit into from
Closed

File upload is broken when submitting a form... #12485

wants to merge 1 commit into from

Conversation

jonathanpmartins
Copy link

...without selecting a file in Laravel 5! My tests revealed that with this tweek the problem described at this issue are resolved: laravel/framework#6189

...in Symfony on the FileBag.php file, convertFileInformation() method returns NULL if no files was selected on the upload. In this case "FileBag->set('image', NULL)" receives NULL, and that is what is dispatching a throw!

I don't make unit tests, but this will no more break my code flow. I'm not sure if this is the real deal! If someone could look deeper into the problem, I appreciated!

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets
License MIT
Doc PR

...without selecting a file in Laravel 5! My tests revealed that with this tweek the problem described at this issue are resolved: laravel/framework#6189 
I don't make unit tests, but this will no more break my code flow. I'm not sure if this is the real deal! If someone could look deeper into the problem, I appreciated! 

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | 
| License       | MIT
| Doc PR        |
@GrahamCampbell
Copy link
Contributor

Shouldn't this have been sent to 2.6?

@jonathanpmartins
Copy link
Author

Graham, you are right! I'm canceling now this pull request, and resending it again to 2.6 version! Thanks

@GrahamCampbell
Copy link
Contributor

This didn't really need closing though because @fabpot can merge pull requests into any branch of his choosing.

@jonathanpmartins
Copy link
Author

Sorry I blow everything up! I do open a new pull request...

@jonathanpmartins
Copy link
Author

New pull request open: #12486

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants