QUploader,An unsolvable problem
-
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?
-
Why are you using
factory
? 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:
-
@dobbel How do I get the server response