Question on a!fileUploadField

I'm using a!fileUploadField to add multiple documents. From what I read is that the files have a temp ID until the form is submitted. How do I retrieve the ID of those files I just uploaded? I need to move those files to the correct folder that is created with the Request ID which is only done if the form is submitted. And if the form is cancel I need to delete those documents that were uploaded.

OriginalPostID-225874

OriginalPostID-225874

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Basically you just have to save the file values to Document-type ACP variables by way of document-type Rule Inputs. These variables can be singular or array, so you should be covered for doing multiple.

    While on-form, the doc IDs stored in the variables will be temporary (and in a temporary, barely-accessible system location); after the form is submitted, assuming the variables are document-type, the temp values will be replaced with the real values automatically. I stress "document-type" variables as users have been caught unawares in the past by the fact that if the ACP or RI variables are of Integer type, the temp values will remain and won't point to the actual new files.

    Hope this helps.
Reply
  • 0
    Certified Lead Developer
    Basically you just have to save the file values to Document-type ACP variables by way of document-type Rule Inputs. These variables can be singular or array, so you should be covered for doing multiple.

    While on-form, the doc IDs stored in the variables will be temporary (and in a temporary, barely-accessible system location); after the form is submitted, assuming the variables are document-type, the temp values will be replaced with the real values automatically. I stress "document-type" variables as users have been caught unawares in the past by the fact that if the ACP or RI variables are of Integer type, the temp values will remain and won't point to the actual new files.

    Hope this helps.
Children
No Data