fonder
fonder
I changed after adding: js/jquery.fileupload-ui.js acceptFileTypes: /.+$/i, on acceptFileTypes: /(.|\/)(gif|jpe?g|png)$/i, after pressing the start (in transmitting): server\php\upload.class.php 'accept_file_types' => '/.+$/i', on 'accept_file_types' => '/gif|jpeg|jpg|png|bmp|GIF|JPEG|JPG|PNG|BMP/',
add index.php ``` index.php index.php?album=files index.php?album=other ``` Remember to create secure catalogs! upload.class.php add function __construct( ``` if (isset($_SESSION['album']) && ($_SESSION['album'] != NULL)) { $place = $_SESSION['album']; } ``` change...
how to use the code to display only photos: ``` ``` in upload.class.php ``` protected function get_file_object($file_name) ``` or ``` protected function get_file_objects() ... scandir($this->options['upload_dir']) ... ``` :|
Hi, it solved the problem add upload.class.php protected function get_file_object($file_name) ``` // add code - Display File Types - variables $imagesExtensions = array('jpg', 'jpeg', 'gif', 'png', 'JPG', 'JPGE', 'GIF', 'PNG');...