mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-26 11:26:17 +00:00
Start on fixing errors and semi-automatic setup
This commit is contained in:
parent
d897215023
commit
c3814000c0
10 changed files with 180 additions and 57 deletions
|
@ -30,7 +30,12 @@ if (isset($_POST['submit'])) {
|
|||
$tags = $make_stuff->tags(trim($_POST['tags']));
|
||||
|
||||
// Check filetype
|
||||
$allowed_types = array('jpg', 'jpeg', 'png', 'webp');
|
||||
if (isset($upload_conf['allowed_extentions'])) {
|
||||
$allowed_types = $upload_conf['allowed_extentions'];
|
||||
} else {
|
||||
$allowed_types = array('jpg', 'jpeg', 'png', 'webp');
|
||||
}
|
||||
|
||||
if (!in_array($file_type, $allowed_types)) {
|
||||
?>
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue