I don't know about your code, no idea, but the following works 100%
<form action='add' method='post' enctype="multipart/form-data">
<table style="border:none; width: 700px;">
<tr>
<td>dogpic:</td>
<td>
<input name="ufile" type="file" id="ufile" size="50" /></td>
</td>
</tr>
///////////// more code for form
controller
$lid = DB::table('dc_dogs')->count();
$lid = $lid + 1;
$file = Request::file('ufile');
$file_name = $file->getClientOriginalName();
$file_ext = $file->getClientOriginalExtension();
$fileInfo = pathinfo($file_name);
$filename = $fileInfo['filename'];
$newname = $filename . $lid . "." . $file_ext;
$destinationPath = ASSET . 'upload/imgdogs'; // use your path here not mine.
$file->move($destinationPath, $newname);
$dogpic = $newname;
$dogname = ucfirst(Request::input('dogname'));
$sex = ucfirst(Request::input('sex'));
$comments = Request::input('comments');
$adopted = !empty(Request::input('adopted')) ? '1' : '0';
$lastedit = date("Y-m-d H:i:s");
$postdata = array(
'dogpic' => $dogpic,
'dogname' => $dogname,
'sex' => $sex,
'comments' => $comments,
'adopted' => $adopted,
'lastedit' => $lastedit
);
DB::table('dc_dogs')->insert($postdata);
Never had problems with this.
Validation not shown, so validate your stuff as needed.
And
Answer my question
Sounds very rude, These folks are trying to help, and do so for free, and they enjoy trying to help, this is not PAID support.
Even if one did not help you, maybe they were at least trying. Don't like an answer, skip it then.
Please be nice to folks trying to help, and thank them sometimes.