Closed
Description
This will give an error
public function addPost(ImageAddRequest $request) { if ($request->hasFile('image')){ $path = base_path()."/public/storage/pages/"; $image = $request->file('image'); $image->move($path, $image->getClientOriginalName()); $name = $request->name; } }
any instance of request after move gives and error that the temp file can not be found.
found exactly the line that is causing issue.
laravel/framework/src/Illuminate/Http/UploadedFile.php
Line 50
If I remove instanceof static it works fine.
The function is called from laravel/framework/src/Illuminate/Http/Request.php
Line 419
Metadata
Metadata
Assignees
Labels
No labels