-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to add reactive parameter in endpoint when uploading file on vue.js #1851
Comments
In the future, there will be an official way to do this using At the moment, you can override options for XHRUpload specifically using const { xhrUpload } = uppy.getState()
uppy.setState({
xhrUpload: {
...xhrUpload,
endpoint: 'https://new-endpoint.com/'
}
}) The object merge is important because other plugins may use the (Doing this when an upload is already in progress is not supported and will cause weird unknown breakage.) |
@goto-bus-stop thanks for the reply. In which state it is good to use |
You can do it whenever the |
Thanks |
this is result when I print
can you help me with this? |
|
@goto-bus-stop
Is there anything that I miss? Can you help me here? |
Thank you!!! |
For the record, in current Uppy versions you can do: uppy.getPlugin('XHRUpload').setOptions({
endpoint: buildEndpointUrl()
}) Hopefully that should properly address this use case 🙏 |
Hi,
I want to add a dynamic/reactive parameter value which can be added as a path parameter to my endpoint when uploading the file on uppy.
I do this on
mounted
hook.Here
textContent
is a reactive property that we created on Vue js.But this
textContent
is not being reactive property toendpoint URL
that is addedHow can we do this?
Thanks in advance!
The text was updated successfully, but these errors were encountered: