fix: resolve upload delay and refine trash functionality
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m22s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m22s
This commit is contained in:
parent
45989ef97d
commit
db946461d7
3 changed files with 49 additions and 21 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Reference in a new issue