What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-16 07:02:02
how to validate format and size of uploaded file via php
<?php if (isset($_POST["upload"])) { // Get Image Dimension $fileinfo = @getimagesize($_FILES["file-input"]["tmp_name"]); $width = $fileinfo[0]; $height = $fileinfo[1]; $allowed_image_extension = a... Add solution