VMware Cloud Community
LukasWe
Enthusiast
Enthusiast
Jump to solution

FileUpload Parameter in vRO 8.1

Hi all,

vRO 8 introduced the possibility to upload a file into the input form of a workflow.

I'd like to upload a file and then convert it to a base64-encoded string to use it in a scripting block.

But I don't know which object type to select as input parameter to be able to change the display type to "File Upload". The type "Any" doesn't work unfortunately and plain "object" type cannot be selected. If I just drag the "File Upload" input element from generic elements into the form, a dynamic input ID is created and can partly be referenced. But I still don't know how to retrieve the file or its content from another attribute or in the workflow script itself.

I'd greatly appreciate it if anybody has some hints Smiley Happy

Regards,

Lukas

0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

One option is to add workflow input parameter of type MimeAttachment.

View solution in original post

4 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

One option is to add workflow input parameter of type MimeAttachment.

LukasWe
Enthusiast
Enthusiast
Jump to solution

Thank you, exactly what I've looked for!

0 Kudos
ca_fahem
Enthusiast
Enthusiast
Jump to solution

Hello, 

I have the same situation as you after 3 years, i couldn't decode the content or store the file, show it to users (which item that i can use to PDF reader), any idea or help ? Thanks

0 Kudos
StefanSchnell
Enthusiast
Enthusiast
Jump to solution

@ca_fahem 

Hello Arar,

a detailed explanation how to handle this is here available:

https://communities.vmware.com/t5/VMware-Aria-Discussions/upload-File-item-in-service-broker-how-to-...

Best regards
Stefan


More interesting information at blog.stschnell.de

0 Kudos