Skip to content
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

Can't upload image #13

Closed
Itachicz11 opened this issue Nov 27, 2014 · 10 comments
Closed

Can't upload image #13

Itachicz11 opened this issue Nov 27, 2014 · 10 comments

Comments

@Itachicz11
Copy link

When I want to upload image for news (or any model) I get this error.

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'An uploaded file must be an array or an instance of UploadedFile.' in C:\xampp\htdocs\larashop\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\FileBag.php:59 Stack trace: #0 C:\xampp\htdocs\larashop\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\FileBag.php(73): Symfony\Component\HttpFoundation\FileBag->set('files', NULL) #1 C:\xampp\htdocs\larashop\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\FileBag.php(48): Symfony\Component\HttpFoundation\FileBag->add(Array) #2 C:\xampp\htdocs\larashop\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\FileBag.php(37): Symfony\Component\HttpFoundation\FileBag->replace(Array) #3 C:\xampp\htdocs\larashop\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\Request.php(448): Symfony\Component\HttpFoundation\FileBag->__construct(Array) #4 C:\xampp\htdocs\larashop\vendor\laravel\framework\src\Illuminate\Http\Request.php(607): Symfony\Component in C:\xampp\htdocs\larashop\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\FileBag.php on line 59

Thank you very much for your awesome work

@mrakodol
Copy link
Owner

Yea. I know that. It's the laravel problem, and I will fix it when laravel 5 is finished. Sorry for wait.

@Itachicz11
Copy link
Author

ok :) I have came across this solution laravel/framework#6189 didn't tried tho...

@mrakodol
Copy link
Owner

Me to. I didn't try that. I prefer wait a new laravel, because it may be not work when new laravel finished and we must change it again :)

@Itachicz11
Copy link
Author

true true :) anyway thank you for your work :)

@mrakodol
Copy link
Owner

You're welcome.Thanks.

@mrakodol
Copy link
Owner

P.S. If you have idea to make some nice project with laravel we can make a deal ;)

@Itachicz11
Copy link
Author

You work as an Laravel developer?

@mrakodol
Copy link
Owner

No. I just developing on laravel as freelancer :)

@Itachicz11
Copy link
Author

could you give me your mail for later conversation?

@mrakodol
Copy link
Owner

Username on github at gmail.com. Can I get your?Are you a developer too or?

@zcosmin20 zcosmin20 mentioned this issue Dec 1, 2015
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

No branches or pull requests

2 participants