mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
fix: add filename to s3 upload
This commit is contained in:
@@ -582,7 +582,8 @@
|
||||
randomFileKey={true}
|
||||
on:addition={(evt) => {
|
||||
value = {
|
||||
s3: evt.detail?.path ?? ''
|
||||
s3: evt.detail?.path ?? '',
|
||||
filename: evt.detail?.filename ?? ''
|
||||
}
|
||||
}}
|
||||
on:deletion={(evt) => {
|
||||
|
||||
@@ -417,7 +417,8 @@
|
||||
randomFileKey={true}
|
||||
on:addition={(evt) => {
|
||||
value = {
|
||||
s3: evt.detail?.path ?? ''
|
||||
s3: evt.detail?.path ?? '',
|
||||
filename: evt.detail?.filename ?? ''
|
||||
}
|
||||
}}
|
||||
on:deletion={(evt) => {
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
|
||||
const outputs = initOutput($worldStore, id, {
|
||||
result: [] as { path: string }[] | undefined,
|
||||
result: [] as { path: string; filename: string }[] | undefined,
|
||||
loading: false,
|
||||
jobId: undefined
|
||||
})
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
dispatch('addition', { path: uploadData.path })
|
||||
dispatch('addition', { path: uploadData.path, filename: fileToUpload.name })
|
||||
sendUserToast('File upload finished!')
|
||||
|
||||
uploadData.progress = 100
|
||||
|
||||
Reference in New Issue
Block a user