Rename files on upload

This commit is contained in:
Michał Gdula 2022-09-07 14:29:53 +00:00
parent 5a6dc1a4b8
commit d4e83dcb4a
2 changed files with 14 additions and 14 deletions

View file

@ -42,7 +42,7 @@
$("#alt").val("");
$("#submit").val("");
} else {
sniffleAdd('Gwha!', 'Pls provide image', 'var(--red)', '<?php echo $root_dir; ?>assets/icons/file-search.svg');
sniffleAdd('Gwha!', 'Pls provide image', 'var(--red)', 'assets/icons/file-search.svg');
}
});
});
@ -58,7 +58,7 @@
if (!loggedin()) {
echo "
<script>
sniffleAdd('Who are you!', 'You must be loggedin to upload things, sowwy!', 'var(--red)', '" . $root_dir . "assets/icons/cross.svg');
sniffleAdd('Who are you!', 'You must be loggedin to upload things, sowwy!', 'var(--red)', 'assets/icons/cross.svg');
</script>
";
}