Skip to content

Commit

Permalink
fix: remove extension from filename
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Dec 23, 2024
1 parent 0d672c9 commit 7424365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Request/RequestPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 7424365

Please sign in to comment.