For save response when upload file and get presigned url #56
Answered
by
optimajet
vnext-phunx2
asked this question in
Q&A
|
Hi everyone, I have an issue with RsUploader. |
Answered by
optimajet
Feb 26, 2025
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"
} |
0 replies
Answer selected by
sergeythrees
|
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 |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Hi,
Consider adding an
onSuccesshandler, for example:{ "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": [ { …