Hello,
I am trying to upload file into MT Cloud, and then read this file from Mongoose.
I suppose, that file upload is done correctly, I have returned file path:

But when I try to read it, I receive IO permission error:

So file must be accessed some other way?
Here is my Form Script code:
using System;
using System.IO;
using System.Text;
using Mongoose.Core.Cloud;
using Mongoose.IDO.Protocol;
using Mongoose.Scripting;
namespace Mongoose.FormScripts
{
public class PMTestFileImport : FormScript
{
public void UploadFile()
{
string filePath = string.Empty;
string caption = "Select Statement File";
string filter = "*.*";
Application.ShowOpenFileDialog(ref filePath, caption, filter);
if (filePath != "")
{
Application.ShowMessage("File: " + filePath + " was uploaded");
FileStream fs = File.OpenRead(filePath.Substring(4));
StreamReader sr = new StreamReader(fs);
string line;
StringBuilder sb = new StringBuilder();
while((line = sr.ReadLine()) != null)
{
sb.AppendLine(line);
}
sr.Close();
fs.Close();
ThisForm.Variables("fileContent").Value = sb.ToString();
}
}
}
}