Skip to content

For save response when upload file and get presigned url #56

Answered by optimajet
vnext-phunx2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Consider adding an onSuccess handler, 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": [
            {
 …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sergeythrees
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants