QUploader



  • Hi! Somebody can tell me how to use this component? Can show your code example? Thanks



  • Hi @snezhkois,

    Here is an exemple of my code :

    1. First you have to import the component in the quasar.conf.js :
    framework: {
      components: ['QUploader']
    }
    
    1. In the html <template> part : <q-uploader :url="url" float-label="Choose a picture to import"/>
      -> This will create the component in the dom

    2. In the data in script part you have to define the ‘url’ variable which has to be a URL or path to the server which handles the upload: url: 'pathToMyServer'

    Hope it will help you but if you red the doc it’s even more clear 🙂



  • @sweetyy thk