Update from a long time

This commit is contained in:
root
2024-09-19 23:45:46 +02:00
parent 5a9fdeff2d
commit f4dbaa225c
14 changed files with 51 additions and 29 deletions

View File

@ -28,8 +28,9 @@
})(jQuery);
function downloadThumbnail(file) {
var href = 'thumbnail.php'
var href = 'php/thumbnail.php'
var blobUrl;
console.log(file);
$.ajax({
url: href,

View File

@ -60,7 +60,7 @@ $('#url').keypress(function (e) {
if (e.which == 13) {
var url = encodeURIComponent($('#url').val());
$.get({
url: 'uploadUrl.php',
url: 'php/uploadUrl.php',
data: 'url=' + url,
beforeSend: function(){
lock = 1;
@ -76,7 +76,7 @@ $('#url').keypress(function (e) {
});
function uploadFile(file) {
let url = 'upload.php'
let url = 'php/upload.php'
let formData = new FormData()
var title = file.name;
@ -149,7 +149,7 @@ function previewFile(file) {
function listFile() {
$.get({
url: 'list.php',
url: 'php/list.php',
success: function(data, statut) {
$('.list').empty();
if (data.length > 0) {
@ -169,7 +169,7 @@ function listFile() {
if (['file-image', 'file-video'].indexOf(value.type) > -1)
a.addClass('preview');
a.appendTo('.list');
$('.list').append('<a class="fa fa-times del" href="delete.php?file=' + encode + '"></a><br>');
$('.list').append('<a class="fa fa-times del" href="php/delete.php?file=' + encode + '"></a><br>');
});
$('.preview').anarchytip();
$('.del').click( function(event){