Category : image

enter image description here enter image description here enter image description here enter image description here Those are the image of error. It say ‘Undefined index’ but it is already defined below. It said like- Notice: Undefined index: fileproductimage1 in C:xampphtdocsL5DC73_Computing_ProjectProgramsProductRegistration.php on line 12 Notice: Trying to access array offset on value of type null ..

Read more

berita.blade.php https://i.stack.imgur.com/HVOx3.png img src=”{{ asset(‘/img/’. $berita->foto )}}” height=”50″ width=”50″ alt=”” srcset=”” BeritaController.php https://i.stack.imgur.com/z32Sc.png public function store(Request $request) { $af = $request->file(‘foto’)->store(‘public’); $ambilFoto = $af->getClientOriginalName(); $cek_berita = Berita::where(‘judul_berita’, $request->judul_berita)->count(); if ($cek_berita == 0) { $berita = new Berita; $berita->jenis_berita = $request->jenis_berita; $berita->judul_berita = $request->judul_berita; $berita->isi_berita = $request->isi_berita; $berita->foto = $ambilFoto; $af->move(public_path().’/img/’, $ambilFoto); $berita->save(); Alert::success(‘Berhasil Tambah Berita’, ..

Read more

I am trying to upload an image from android mobile to php server. In android, I show all images in the phone, select 1, get its path and upload it to server using MultipartUploadRequest. In php script, I test the parameters are set, then copy the image to a folder and update a database. The ..

Read more

I read the link -> https://www.simplifiedcoding.net/android-upload-image-to-server/ I am using server -> 000webhost.com I have followed the page and created the files dbDetails.php <?php define(‘HOST’,’localhost’); define(‘USER’,’root’); define(‘PASS’,”); define(‘DB’,’db_images’); and upload.php: <?php //importing dbDetails file require_once ‘dbDetails.php’; //this is our upload folder $upload_path = ‘uploads/’; //Getting the server ip $server_ip = gethostbyname(gethostname()); //creating the upload url $upload_url ..

Read more

I create a thumbnail of an image create by user’s phone, but the thumb result rotate by 90°. this is the code: function generateThumbnail($imgk, $width, $height, $quality) { if (is_file($imgk)) { $imagick = new Imagick(realpath($imgk)); $imagick->setImageFormat(‘jpeg’); $imagick->setImageCompression(Imagick::COMPRESSION_JPEG); $imagick->setImageCompressionQuality($quality); $imagick->thumbnailImage($width, $height, false, false); $filename_no_ext = reset(explode(‘.’, $imgk)); if (file_put_contents($filename_no_ext . ‘_thumb’ . ‘.jpg’, $imagick) === false) ..

Read more

I have two input image insertion fields; Adding one deletes the other. If I add both, there is no problem. but when i upload one, the other one doesn’t keep the old image when i upload two pictures to it it saves without any problem. There are many ways to add bulk images and upload ..

Read more