Appian Family,
Here is my Interface -- JR_InterfaceName
1) File Upload field in an interface >> Define the Target Folder with all correct permissions.
2) Submit Button: "submit" set to true.
I have 2 scenarios here
1) Just the interface by itself is just working fine when I upload the file and click submit. It gets save to the target folder.
2) When the same interface is either called from another interface as rule (rule!JR_InterfaceName) it doesn't work. The file is not saved to the target folder. I am pretty sure the document object is there but it's just not available to either save in a target folder or for anything else.
3) Just to play around further
Below is snippet of code
a!formLayout( label: "Form", contents: { a!sectionLayout( contents: { a!fileUploadField( label: "File Upload", labelPosition: "ABOVE", target: cons!JR_DELETE_ME, maxSelections: 1, value: ri!document, saveInto: ri!document, validations: {} ) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Submit", submit: true, style: "SOLID" ) }, secondaryButtons: { a!buttonWidget( label: "Cancel", value: true, saveInto: ri!cancel, submit: true, style: "OUTLINE", validate: false ) } ))
Discussion posts and replies are publicly visible
All of what you observe is already discussed in great length here. File upload only happens on submit of the interface. Just adding an interface as a page to a site does not do that.
When you nest your interface into another, you have to make sure that the rule inputs are passed into rule inputs of the parent interface.
And again: Not submit -> no file upload.
And yes, I know that it works a bit different in portals as there is no submit action available. But that is for portals only.
We’ve large csv files and we want them in Appian, how will I DO IT
I suggest to start a new conversation as your use case is very much different.
yes but i didn't know how to start new conversations.