Level 75
Just move, then copy to other location.
Hello
I have a problem with $value->move(), i want copy and move image on 2 folder:
foreach ($request->file('uploadFile') as $key => $value) {
$imageName = time() . $key . '.' . $value->getClientOriginalExtension();
$value->move(public_path('images'), $imageName);
$value->move(public_path($namewebsite . '/images'), $imageName);
}
but i have this error :
message "The file \"262694778_210814011237464_7263401873209503225_n.jpg\" was not uploaded due to an unknown error."
exception "Symfony\Component\HttpFoundation\File\Exception\FileException"
file "vendor\symfony\http-foundation\File\UploadedFile.php"
line 213
i try to duplicate my foreach but same error
Someone as idea ?
Ty
Just move, then copy to other location.
Please or to participate in this conversation.