From 74243651d14566e42e16a10cf340d2618ca56ebc Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 23 Dec 2024 18:57:24 -0300 Subject: [PATCH] fix: remove extension from filename When upload a file, the extension is removed to don't have a document called file.pdf.pdf Maybe will be necessary do the same at backend side. Signed-off-by: Vitor Mattos --- src/Components/Request/RequestPicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Request/RequestPicker.vue b/src/Components/Request/RequestPicker.vue index 54f6138da..31bb11cb0 100644 --- a/src/Components/Request/RequestPicker.vue +++ b/src/Components/Request/RequestPicker.vue @@ -187,7 +187,7 @@ export default { async upload(file) { const data = await loadFileToBase64(file) await this.filesStore.upload({ - name: file.name, + name: file.name.replace(/\.pdf$/i, ''), file: data, }) .then((response) => {