For save response when upload file and get presigned url #56
-
Hi everyone, I have an issue with RsUploader. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, Consider adding an {
"version": "1",
"actions": {
"onSuccess": {
"body": " const arguments = e.args\n const httpRequest = arguments[3]\n console.info(httpRequest.response)",
"params": {}
}
},
"form": {
"key": "Screen",
"type": "Screen",
"props": {},
"children": [
{
"key": "rsUploader1",
"type": "RsUploader",
"props": {
"method": {
"value": "POST"
},
"action": {
"value": "/"
},
"removable": {
"value": true
}
},
"events": {
"onSuccess": [
{
"name": "onSuccess",
"type": "code"
}
]
}
}
]
},
"localization": {},
"languages": [
{
"code": "en",
"dialect": "US",
"name": "English",
"description": "American English",
"bidi": "ltr"
}
],
"defaultLanguage": "en-US"
} |
Beta Was this translation helpful? Give feedback.
-
Hi team, I’m trying to figure out how to update a form’s state using the onSuccess callback.
Now, after a successful API call, I’d like to update this state with extra details coming from the API response (for example, file metadata or an uploaded URL). Any guidance or examples would be really helpful! Thanks |
Beta Was this translation helpful? Give feedback.
Hi,
Consider adding an
onSuccess
handler, for example: