forked from aslan/applicant-site
delete unused controller
This commit is contained in:
parent
4a0f077272
commit
77d0f5e65a
|
@ -1,36 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
|
|
||||||
class UploadFileController extends Controller
|
|
||||||
{
|
|
||||||
public function showUploadFile(Request $request)
|
|
||||||
{
|
|
||||||
$file = $request->file('image');
|
|
||||||
|
|
||||||
//Display File Name
|
|
||||||
echo 'File Name: ' . $file->getClientOriginalName();
|
|
||||||
echo '<br>';
|
|
||||||
|
|
||||||
//Display File Extension
|
|
||||||
echo 'File Extension: ' . $file->getClientOriginalExtension();
|
|
||||||
echo '<br>';
|
|
||||||
|
|
||||||
//Display File Real Path
|
|
||||||
echo 'File Real Path: ' . $file->getRealPath();
|
|
||||||
echo '<br>';
|
|
||||||
|
|
||||||
//Display File Size
|
|
||||||
echo 'File Size: ' . $file->getSize();
|
|
||||||
echo '<br>';
|
|
||||||
|
|
||||||
//Display File Mime Type
|
|
||||||
echo 'File Mime Type: ' . $file->getMimeType();
|
|
||||||
|
|
||||||
//Move Uploaded File
|
|
||||||
$destinationPath = 'uploads';
|
|
||||||
$file->move($destinationPath, $file->getClientOriginalName());
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue