fipamo/app/Http/Controllers/API/FileUploadAPIController.php
ro cd056336cd
file upload fix
found a minor bug that was preventing file uploads, so that was fixed.

also commented out some buttons that are for features that have not been
added just yet
2024-05-28 13:16:50 -06:00

23 lines
488 B
PHP

<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Services\Assets\FileUploadService;
class FileUploadAPIController extends Controller
{
protected $upload;
public function __construct(FileUploadService $fileUploadService)
{
$this->upload = $fileUploadService;
}
public function upload(Request $request, $type = null)
{
return $this->upload->handleFile($request, $type);
}
}