What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-28 00:30:13
express delete image
const router = express.Router(); const path = require("path"); const fs = require('fs'); var multer = require('multer') var upload = multer({ dest: 'uploads/' }) router.get('/:folder/:id', async (req, res) => { let filepath = path.join(_... Add solution -
Other 2021-10-18 22:05:05
image upload in php
<?php error_reporting(0); $msg = ""; if ( isset( $_POST['upload']) ) { $filename = $_FILES["uploadfile"]["name"]; $tempname = $_FILES["uploadfile"]["tmp_name"]; $folder = $filename; if (... Add solution -
Shell/Bash 2021-10-16 03:16:08
flutter ui upload multiple image
import 'package:flutter/material.dart'; import 'dart:async'; import 'package:multi_image_picker/multi_image_picker.dart'; void main() => runApp(new MyApp()); class MyApp extends StatefulWidget { @override _MyAppState createState() => new _MyA... Add solution -
PHP 2021-10-13 08:44:08
how to upload two files on same form different path in codeigniter
if($this->input->post('Submit')){ //-----------Image File Section Start Here -----------// $config['upload_path'] = './uploads/'; // Directory $config['allowed_types'] = 'jpg|jpeg|bmp|png'; //type of images allowed $config['max_size'] = '3072... Add solution -
PHP 2021-10-12 19:22:07
send image by form in laravel
<form enctype="multipart/form-data" method="post" action="{{url('admin/post/insert')}}"> {{ csrf_field() }} <div class="form-group"> <label for="imageInput">File input<... Add solution -
PHP 2021-10-07 21:46:02
upload multiple files in codeigniter
if($this->input->post('Submit')){ //-----------Image File Section Start Here -----------// $config['upload_path'] = './uploads/'; // Directory $config['allowed_types'] = 'jpg|jpeg|bmp|png'; //type of images allowed $config['max_size'] = '3072... Add solution -
Html 2021-09-28 19:25:04
how to enable file input on click on image
<input type="file" id="imgupload" style="display:none"/> <button id="OpenImgUpload">Image Upload</button> $('#OpenImgUpload').click(function(){ $('#imgupload').trigger('click'); }); Add solution -
PHP 2021-09-24 17:17:03
how to store and retrieve image from database in php
// Get the name of images $Get_image_name = $_FILES['image']['name']; // image Path $image_Path = "images/".basename($Get_image_name); $sql = "INSERT INTO student_table (imagename, contact) VALUES ('$Get_image_name', 'USA')... Add solution