Skip to content
Discussion options

You must be logged in to vote

https://vuejs.org/guide/essentials/template-refs.html

<template>
  <q-uploader ref="uploaderRef" ... />

  <q-btn label="Log Files" @click="logFiles" />
</template>

<script setup lang="ts">
import type { QUploader } from 'quasar';
import { ref, Ref } from 'vue';

const uploaderRef = ref() as Ref<QUploader>;

function logFiles() {
  console.log(uploaderRef.value.files)
}
</script>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mq1lv
Comment options

@yusufkandemir
Comment options

Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants