File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments