- Added `media-library.php` configuration file for managing media uploads and conversions. - Updated `filesystems.php` to set default visibility for AWS S3 storage. - Implemented `FileUpload` component for handling file uploads with preview and error handling. - Created `ImagePreviewModal` component for displaying image previews in a modal. - Introduced `Attachment` UI components for better file attachment handling. - Added `useFileUpload` hook to manage file upload state and logic. - Implemented utility functions for uploading files to S3 with presigned URLs. - Created API route for generating presigned URLs for file uploads.
9 lines
252 B
PHP
9 lines
252 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\Api\PresignedUrlController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::post('/presigned-url', [PresignedUrlController::class, 'store'])
|
|
->middleware(['web', 'auth', 'verified'])
|
|
->name('presigned-url.store');
|