fix upload and redirect user to file list when upload successfully
Build and Push Docker Container / build-and-push (push) Successful in 1m38s

This commit is contained in:
2025-10-25 15:11:17 +02:00
parent cd96e9135f
commit 85407ad86f
@@ -249,8 +249,7 @@ uploadBtn.addEventListener('click',async()=>{
preview.textContent = '✅ Uploaded successfully!';
showToast('✅ Uploaded successfully!');
// Optional: redirect to Files after short delay
// setTimeout(()=>{ window.location.href = '{{ url_for("side_main.files") }}'; }, 800);
setTimeout(()=>{ window.location.href = '{{ url_for("side_main.files_list") }}'; }, 800);
}catch(err){
preview.textContent = '❌ ' + (err?.message || 'Upload error');
showToast('❌ Upload failed', true);