mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 03:35:19 +00:00
Show link to the uploaded file
This commit is contained in:
parent
b9c98b5b73
commit
9f1fa7bbac
3 changed files with 11 additions and 1 deletions
|
|
@ -61,7 +61,11 @@ export default class ProgressDrawer extends Plugin {
|
|||
<span class="UppyProgressDrawer-itemProgress"
|
||||
style="width: ${file.progress}%"></span>
|
||||
<h4 class="UppyProgressDrawer-itemName">
|
||||
${file.name} (${file.progress})</h4>
|
||||
${file.uploadURL
|
||||
? yo`<a href="${file.uploadURL}" target="_blank">${file.name}</a>`
|
||||
: yo`<span>${file.name} (${file.progress})</span>`
|
||||
}
|
||||
</h4>
|
||||
${isUploaded ? checkIcon : ''}
|
||||
${isUploaded
|
||||
? ''
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ export default class Tus10 extends Plugin {
|
|||
this.core.log(file)
|
||||
},
|
||||
onSuccess: () => {
|
||||
file.uploadURL = upload.url
|
||||
this.core.emitter.emit('upload-success', file)
|
||||
|
||||
this.core.log(`Download ${upload.file.name} from ${upload.url}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue