Sign Up

welcome

Already have an account? Sign In

Sign In

welcome

Sign Up
Login with Google

Don't have account, Sign Up Here
Sign In Sign Up

letsrectify

letsrectify
  • Home
  • About Us
  • Contact Us
  • Jobs
Ask a Question
  • Questions & Answers

Questions & Answers

Komal Bhoma
Asked: 21-03-22
Answer

How to upload a image in different database table in laravel

  • 3

$productimage = time() . '-' . $request->name. '.' .

       $request->image->extension();

       $path = $request->image->move(public_path('path'), $productimage);

        $Attachments = Attachment::create([

           'product_id'=>$product,

           'name'=>$name,

           'path'=>$path,

       ]);

Share
  • Facebook

Questions & Answers

aman
Asked: 23-02-22
Answer

Image upload in php

  • 3

//image upload using php

   $file = $_FILES["uploadimagefile"]["name"];

   $tempname = $_FILES["uploadimagefile"]["tmp_name"];

   $folder = "/image/".$file;

   if (move_uploaded_file($tempname, $folder))

   {

       $msg = "Image uploaded successfully";

   }

   else

   {

       $msg = "Failed to upload image";

   }

Share
  • Facebook

Questions & Answers

aman
Asked: 22-02-22
Answer

when i submit shortcode button in wordpress then it show 404 error

  • 1

Wordpress hijacking the form

rename form input fields 

like 

name='name' to name='my_form_name'

Share
  • Facebook
  • ‹
  • 1
  • 2
  • ...
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • ›
Ask A Question
  • How to upload a image in different database table in laravel

    • 7 Answers
  • Image upload in php

    • 7 Answers
  • when i submit shortcode button in wordpress then it show 404 error

    • 7 Answers
letsrectify

Categories

  • Technology
  • Food
  • Health
  • Sports
  • Science
  • Politics
  • Marketing

Policies

  • Terms & Conditions
  • Privacy Policy

About Us

  • About Us
  • Contact Us
  • Feedback

© 2025 All Rights Reserved by
Letsrectify.com