fix: resolve upload delay and refine trash functionality
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m22s

This commit is contained in:
Elijah 2026-05-23 14:11:23 -07:00
parent 45989ef97d
commit db946461d7
3 changed files with 49 additions and 21 deletions

View file

@ -201,8 +201,9 @@ class ApiClient {
return res.json();
}
async deleteFile(path: string) {
const res = await this.request(`/api/files/?path=${encodeURIComponent(path)}`, {
async deleteFile(path: string, permanent: boolean = false) {
const query = permanent ? '&permanent=true' : '';
const res = await this.request(`/api/files/?path=${encodeURIComponent(path)}${query}`, {
method: 'DELETE',
});
return res.json();