Skip to content

Commit

Permalink
Merge pull request #162 from uhrjun/fileuploader-fixes
Browse files Browse the repository at this point in the history
Fileuploader fixes
  • Loading branch information
shariquerik committed Jul 17, 2024
2 parents 47ee955 + 71403ae commit 31cd942
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/FileUploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ export default {
},
},
methods: {
openFileSelector(type) {
if (type) {
// change inputs filetype to accept the type of file you want to upload
this.$refs['input'].accept = type
}
inputRef() {
return this.$refs['input']
},
openFileSelector() {
this.$refs['input'].click()
},
async onFileAdd(e) {
Expand Down Expand Up @@ -118,5 +117,6 @@ export default {
})
},
},
expose: ['inputRef'],
}
</script>

0 comments on commit 31cd942

Please sign in to comment.