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,An unsolvable problem

    Starter Kits
    2
    3
    601
    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
      Saysss last edited by

      QUploader wants to intercept the response information for processing, and specifies factory and Factory-Failed, but no matter the upload succeeds or fails, factory-Failed cannot be executed. Please ask how to solve this problem.Or how to manually upload a file?
      a1.png
      a2.png

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Saysss last edited by

        @Saysss

        Why are you usingfactory ? It’s not necessary if you just want to select and upload a file. It’s an optional advanced feature.

        From the Q-upload api , factory description:

        Optional configuration for the upload process; You can override QUploader props in this Object (url, method, headers, formFields, fieldName, withCredentials, sendRaw)

        A simple example:

        https://quasar.dev/vue-components/uploader#Handling-upload

        An alternative way of uploading a file can also be done with something like axios:

        https://serversideup.net/uploading-files-vuejs-axios/

        S 1 Reply Last reply Reply Quote 0
        • S
          Saysss @dobbel last edited by

          @dobbel How do I get the server response

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