Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 41
Registered: ‎10-12-2015

Not able to view uploaded file.

[ Edited ]

Hi Team,

 

We are able to view file uploaded with simple file name. But if the file name("img (1).jpg") contains '( )' this character then, we are able to upload but not able view it.

 

<Form name="BinaryFile" table="PHOTOGRAPHS" idfield="Id">
    <FormTab name="FormTab">
      <FormGroup name="FormGroup">
        <FormField name="Id" datatype="guidstring" visible="hidden" required="false"/>
        <FormFile name="FileData" datatype="binary" contenttypefield="ContentType" filenamefield="FileName"/>
      </FormGroup>
    </FormTab>
  </Form>

In javascript&colon;:-->

IG.downloadFormFile({ id: ID, form: 'BinaryFile', fieldName: 'FileData', openFile: true });

 

Thanks,

Jai Ram Gaur