😅How to Upload File using Ajax Phần 3 (use change) (ok)

C:\xampp8\htdocs\datvietcoconut\routes\web.php
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use App\Http\Controllers\PageController;
Route::get('/', [PageController::class, 'index']);
Route::post('/uploadFile', [PageController::class, 'uploadFile'])->name('uploadFile');
C:\xampp8\htdocs\datvietcoconut\resources\views\index.blade.php
C:\xampp8\htdocs\datvietcoconut\app\Http\Controllers\PageController.php
PreviousHow to Upload File using Ajax Phần 2 (ok)NextLaravel 10 Ajax CRUD with Image Upload Tutorial Example
Last updated
Was this helpful?