<?php

namespace App\Http\Controllers;

use App\Models\File;
use Illuminate\Support\Facades\Request;

class FilesController extends Controller
{
    /**
     * 上传图片.
     * @return array
     * @internal param null $File
     * @internal param bool $fromServer
     * @internal param Request $request
     */
    public function upload()
    {
        $File = Request::file('upload_file');

        return File::upload($File);
    }
}
