mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 19:23:55 +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}`)
|
||||
|
|
|
|||
|
|
@ -118,6 +118,11 @@
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.UppyProgressDrawer-itemName a {
|
||||
color: $color-white;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.UppyProgressDrawer-itemRemove {
|
||||
@include reset-button;
|
||||
width: 40px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue