Hoppa till huvudinnehållet

How do I find the path of a file chosen by the user in the filepicker in a form in Geocortex Workflow 5?

Kommentarer

4 kommentarer

  • Ken Lyon

    Hi Mark,

     

    I don't think the browser shares that information as it's probably a security concern. The user chooses a file from anywhere and then your file picker can use the data and the file name.

     

    Why do you need to know where it came from?

    0
  • Mark Norbury

    My GX 5 workflow calls an Essentials 4 workflow and I'd like to somehow pass the file from one to the other.

     

    I’ve tried converting the file to text format before sending it, but it gets cut off giving an ‘Unterminated string passed in’ error. There doesn’t seem to be a way of sending it as bytes, as I’m using GVH.

     

    If I can get the file’s path somehow then I could pass that to the Essentials workflow and use ReadFileBytes to get the bytes of this file based on its full path and filename. However the filepicker only seems to record the filename, not the path.

     

    0
  • Ken Lyon

    How about using the Get Base64 String From File activity? The usage example in the docs sounds like your situation:

     

    A workflow could use the Get Base64 String From File activity to read the binary content of a file selected by the File Picker form element as a base-64 encoded string.

    0
  • Mark Norbury

    How could I then use the Base64 data in the Essentials 4 workflow? I only see an activity type for converting this to an image, whereas I need it as a featureset.

    0

Du måste logga in om du vill lämna en kommentar.