iosman001
6 days ago
297
1
General

how to insert multiple row images using js?

Posted 6 days ago by iosman001

Hello,

if ($image = $request->file($row['receipt_upload']) {

    foreach ($image as $files) {
        $files = $request->file('receipt_upload');
        $name = time() . $files->getClientOriginalName();
        $files->move(public_path('uploads/receipt'), $name);
        $receipt = "public/uploads/receipt/{$name}";
    }

}

whats wrong in this code..could u plz clarify this problem becoz last two days i spend my time for this issue but can't.

thanks iosman

Please sign in or create an account to participate in this conversation.