first commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user