sniffleAdd('Woopsie','The file type you are trying to upload is not supported. Supported files include: JPEG, JPG, PNG and WEBP','var(--red)','assets/icons/cross.svg');
// Check for conflicting names, as the config could be setup wrong
if(is_file($image_path)){
?>
<script>
sniffleAdd('Woopsie','There was an error in your manifest.json and cause filename errors, please setup a name with a unique template','var(--red)','assets/icons/cross.svg');
</script>
<?php
$error+=1;
}
}else{
$image_newname=$_FILES['image']['name'];
$image_path=$dir.$image_newname;
// Check for file already existing under that name
if(is_file($image_path)){
?>
<script>
sniffleAdd('Woopsie','A file under that name already exists!','var(--red)','assets/icons/cross.svg');
sniffleAdd('Gwha!','We hit a small roadbump during making of the thumbail. We will continue anyway! \n Full Error: <?php echo $make_thumbnail; ?>','var(--black)','assets/icons/bug.svg');
sniffleAdd('Gwha!','We hit a small roadbump during making of the preview. We will continue anyway! \n Full Error: <?php echo $make_preview; ?>','var(--black)','assets/icons/bug.svg');
sniffleAdd(':c','Something went fuckywucky, please try later','var(--red)','assets/icons/cross.svg');
</script>
<?php
}
}
}else{
?>
<script>
sniffleAdd('Hmmff','Something happened when moving the file to the server. This may just been a 1-off so try again','var(--red)','assets/icons/bug.svg');
</script>
<?php
}
}
}else{
?>
<script>
sniffleAdd('Denied!!!','As you are not loggedin, your upload has been stopped, L','var(--red)','assets/icons/cross.svg');