The filename is saved as a string inside quotes such as "textfile.zip". The assembly ExportCurrentObjectPropertyAsBlob does not remove the quotes instead it turns them into underscore and saves the file name as _textfile.zip_.
Are you on the Cloud version of Mongoose?
We started experiencing the same problem this week after the monthly update over the weekend. The ExportCurrentObjectPropertyAsBlob did not add the underscore last week. I opened an incident with Infor - but I haven't heard back yet. Hopefully, they can fix this before the next monthly update. I don't know if they install fixes outside of the monthly update.
As a workaround. Our users are renaming the file in Windows Explorer after it is downloaded. When the underline is removed then the file will open as expected. We have only been using Mongoose for a short time. This is definitely not helping with the user's impression of Mongoose.
Hi,
please this is quite old thread, but do you have any working example how to save file this way in MT Cloud environment?
I am creating and xml file in my Mongoose application, and I would like to let user download this file.
I am trying to store file in this type of property:
I have file saved this way:
var plainBytes = Encoding.UTF8.GetBytes(xmlDoc.OuterXml); var doc64 = Convert.ToBase64String(plainBytes);
This is working for me, when I am sending file into IDM via ION API. But I want offer to user direct possibility of downloading file.
I tried to do something with this function ThisForm.PrimaryIDOCollection.ExportObjectPropertyAsBlob, but nothing works.
Thanks for any help.