What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-02 10:05:02
basic code for file upload in php
//This is the minimal code for an image upload for first time learners //html portion <!DOCTYPE html> <html> <head> <title>ImageUpload</title> </head> <body> <form action="upload.php" method="p... Add solution -
Javascript 2022-01-24 16:22:29
react image upload component
/* Answer to: "react image upload" */ /* "react-images-upload" is a simple component for upload and validate (client side) images with preview built with React.js. This package use "react-flip-move [1]" for animate the... Add solution -
PHP 2022-01-22 12:36:36
Upload image laravel 6
<?php namespace App\Http\Controllers\simple_image_upload; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Validator,Redirect,Response,File; use App\Photo; class ImageUploadController extends Controller {  ... Add solution -
Html 2021-11-18 14:55:11
open the file upload dialogue box onclick the image
<input type="file" id="imgupload" style="display:none"/> <button id="OpenImgUpload">Image Upload</button> $('#OpenImgUpload').click(function(){ $('#imgupload').trigger('click'); }); Add solution -
Other 2021-11-11 21:27:22
woocommerce profile photo upload
// Add field function action_woocommerce_edit_account_form_start() { ?> <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide"> <label for="image"><?php esc_html_e( 'Image', ... Add solution -
PHP 2021-11-09 08:46:18
create custom pagination in laravel 7 for api
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Pagination\Paginator; use Illuminate\Support\Collection; use Illuminate\Pagination\LengthAwarePaginator; class PaginationController extends Controller { /** ... Add solution -
Html 2021-11-02 01:23:11
how to place the path of an uploaded image in a database on an html file input
// 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 -
Other 2021-10-31 12:10:05
custom laravel pagination
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Pagination\Paginator; use Illuminate\Support\Collection; use Illuminate\Pagination\LengthAwarePaginator; class PaginationController extends Controller { /** ... Add solution