Call to a member function getClientOriginalName() on a non-object

You miss enctype attribute in your form markup.

Either do this

<form role="form" action="{{URL::to('user/poster/upload_process')}}" method="post" enctype="multipart/form-data">
...
</form>

or this...

{{ Form::open(array('url' => 'user/poster/upload_process', 'files' => true, 'method' => 'post')) }}
// ...
{{ Form::close() }}

These code are right, but you didn't check values of returns of Input::file('image'). I think returns value may be is not a correct object or your class Input does not have a public function name is getClientOriginalName.

Code:

$file = Input::file('image');
var_dump($file); // if return a correct object. you will check your class Input.

Good luck.


This is just because you forget to write enctype="multipart/form-data" in <form> tag.

This error happen just when you forget this:

<form class="form form-horizontal" method="post" action="{{ route('articles.store') }}" enctype="multipart/form-data">