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
    There are 2 possible solutions to the "length" issue. One is to use the Appian Common Object "rule!APN_arrayLength()" instead of the primitive function length(), as it handles nulls more safely. If you don't have the Appian Common Objects in your environment, you can just do a null check before calling length().

    The second option, assuming the variable being passed into length() is a RI - press "Test", and for that RI's value, instead of leaving it blank, set it to an empty set, i.e. "={}". Length( {} ) does not break and returns 0, unlike length( null() ).
Reply
  • 0
    Certified Lead Developer
    There are 2 possible solutions to the "length" issue. One is to use the Appian Common Object "rule!APN_arrayLength()" instead of the primitive function length(), as it handles nulls more safely. If you don't have the Appian Common Objects in your environment, you can just do a null check before calling length().

    The second option, assuming the variable being passed into length() is a RI - press "Test", and for that RI's value, instead of leaving it blank, set it to an empty set, i.e. "={}". Length( {} ) does not break and returns 0, unlike length( null() ).
Children
No Data