dimanche 16 juin 2019

How to Disable Notice in Larvel 5.8 when file upload

1 .I'm simply using a Froala to upload a file.

But Larave getting below notice: Unknown: file created in the system's temporary directory in Unknown on line 0

    public function boot()
    {
        error_reporting(-1);
    }

image post route

app\Providers\AppServiceProvider.php

Route::post('/upload_image',function(Request $req){
    $imageName = time().'.'.request()->file->getClientOriginalExtension();
    request()->file->move(public_path('image/upload'), $imageName);
    $path = "/image/upload".$imageName;
    return response()->json($path);
});

Unknown: file created in the system's temporary directory in Unknown on line 0 this



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire