May 3, 2015
0
Level 1
Input::File() displaying 'NULL' when using mini ajax file upload plugin in laravel
Hi, I have a form with mini ajax file upload plugin.. i am trying to submit the form with upload files & form input field elements.
Now : when I upload files without using input fields elements the plugin working fine.. but when I am using files & form input elements, then the files are not uploading..
In Other Case : in controller when I save input text value first and then save the files, it is giving NULL value.. Example code given below
Working fine when using like this
$file = Input::file('upl');
var_dump($file);
$new_user = new User;
$new_user->name = Input::get('name');
$new_user->email = Input::get('email');
$new_user->save();
Not Working
$new_user = new User;
$new_user->name = Input::get('name');
$new_user->email = Input::get('email');
$new_user->save();
$file = Input::file('upl');
var_dump($file);
URL for the form : http://visualquotes.co.nz/record-job after I use input::get(), file value null.. need help??
Please or to participate in this conversation.