Search
 
SCRIPT & CODE EXAMPLE
 

PHP

validar tipo de imagen php

$permitidos = array("image/jpg", "image/jpeg", "image/gif", "image/png");
    $limite_kb = 16384;
    if(in_array($_FILES['imagenTicket']['type'], $permitidos) && $_FILES['imagenTicket']['size'] <= $limite_kb * 1024) {
        echo "Se valio";
    } else {
        echo "No se valio";
    }
Comment

PREVIOUS NEXT
Code Example
Php :: php sentense case 
Php :: laravel auth sha-1 
Php :: laravel controller subfolder 
Php :: Skip model accessor laravel8 
Php :: laravel date format valdiate 
Php :: php include file from another folder 
Php :: php audio embed 
Php :: enable trash for media wordpress 
Php :: laravel eloquent with query parameter 
Php :: unnamed place placeholders pdo 
Php :: assign to array array of values php 
Php :: php concat variable and string 
Php :: cara install php7.3 di ubuntu 20.04 
Php :: laravel find model inside the same model 
Php :: php version not update after windows env file 
Php :: Save image to custom meta box 
Php :: + php quantifer 
Php :: dump all variable in view codeigniter 
Php :: laravel collection isNotEmpty 
Php :: php check if stdclass object has property 
Php :: php const in class 
Php :: Laravel unique with Validation rule 
Php :: financial year calculation in php 
Php :: artisan app name 
Php :: array_push php 
Php :: can i back up mysql database from php code? 
Php :: set border phpoffice phpexcel 
Php :: Uncaught RedisException: Redis server went away in 
Php :: onclick on image php 
Php :: php response image 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =