Published 1 week ago by jerauf
I've got this code from my file upload form.
$file_name = $request->file('file_name'); $path = $request->file('file_name')->store('uploads');
The uploads folder is set to read/write access 777. If I return $path, it gives me the right path and the new name of the file. But the file isn't on me server.
I've also tried:
$path = Storage::putFile('uploads', $request->file('file_name'));
That hasn't worked either.
What am I doing wrong?