first commit

This commit is contained in:
2024-01-08 09:33:24 +07:00
commit ed1d4a2b08
2369 changed files with 875560 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
class Helper
{
function upload_image($file, $path)
{
$config['upload_path'] = './assets/img/upload';
$config['allowed_types'] = 'jpg|png|jpeg|gif';
$config['max_size'] = '2048'; //2MB max
$config['max_width'] = '4480'; // pixel
$config['max_height'] = '4480'; // pixel
$config['file_name'] = $path . '-' . $file['name'];
return $config;
}
}