Skip to content

Commit ba0aabe

Browse files
committed
fix(Upload): fix input name
1 parent 6eaf982 commit ba0aabe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controllers/UploadController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ class UploadController extends LfmController {
2323
public function upload()
2424
{
2525
// sanity check
26-
if ( ! Input::hasFile('file_to_upload')) {
26+
if ( ! Input::hasFile('upload')) {
2727
// there ws no uploded file
2828
return "You must choose a file!";
2929
exit;
3030
}
3131

32-
$file = Input::file('file_to_upload');
32+
$file = Input::file('upload');
3333
$working_dir = Input::get('working_dir');
3434
$destinationPath = base_path() . "/" . $this->file_location;
3535

@@ -50,7 +50,7 @@ public function upload()
5050
exit;
5151
}
5252

53-
Input::file('file_to_upload')->move($destinationPath, $new_filename);
53+
Input::file('upload')->move($destinationPath, $new_filename);
5454

5555
if (Session::get('lfm_type') == "Images") {
5656
$this->makeThumb($destinationPath, $new_filename);

0 commit comments

Comments
 (0)