'The file does not exist' error when click on a field type Document (File Name)

I have created a form with ‘Editable grid view’ type and in this form I have couple of fields with field type Document (File Name). MySQL Database field type is VARCHAR(200). When uploaded files it saves file OK and i can see it in the uploaded folder but when I click to download the file I get error message ‘The file does not exist’

This field also has a subfolder and it is set ‘Yes’ to ‘Create Subfolder’ option in field options.

However if I run this application again with form type set to ‘Single record’ then it works OK and I can click and download the file. Is this a bug? Anyone else experiencing similar issue?

I am running on latest scriptcase version [SIZE=12px]8.1.051

All my other forms with single record type are working fine with Document (File Name) fields.[/SIZE]

I notice that if you use static subfolder it is working OK. But if you create subfolder dynamically, for example similar to below then it doesn’t work. But it is still working OK if you use Single record form type.

filefolder/{docid}/doc01

{docid} is the primary key and it is an auto increment integer field.