添加文件
方法名称:add_file
一般用于添加指定路径的文件。
JSON参数:pathLoc
示例代码(JavaScript)
, addFile: function (ps)
{
var param = { name: "add_file",pathLoc:ps};
this.postMessage(param);
}
示例代码(C#)
static void add_file_test()
{
HttpUploaderAppLib.HttpPartitionClass part = new HttpUploaderAppLib.HttpPartitionClass();
JObject o = new JObject();
o["name"] = "add_file";
o["pathLoc"] = "";
part._IHttpPartitionEvents_Event_recvMessage += Part__IHttpPartitionEvents_Event_recvMessage;
part.postMessage(o.ToString());
}
说明:此方法会触发open_files事件。