No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    QUploader

    Help
    2
    3
    657
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      snezhkois last edited by

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

      1 Reply Last reply Reply Quote 0
      • S
        Sweetyy last edited by Sweetyy

        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 🙂

        S 1 Reply Last reply Reply Quote 0
        • S
          snezhkois @Sweetyy last edited by

          @sweetyy thk

          1 Reply Last reply Reply Quote 0
          • First post
            Last post