Hi All,
My purpose is creating or appending a file in the server. My program is working in Both IE & FireFox in Windows OS. But in MAC OS it throws exception error.
My coding is
file=Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
try {
file.initWithPath(dscfname);
}catch (e)
{
alert(e);
}
The error is [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: http: saveInput_ff :: line 241" data: no].
Please help me to solve this problem
Thanks in advance.
My purpose is creating or appending a file in the server. My program is working in Both IE & FireFox in Windows OS. But in MAC OS it throws exception error.
My coding is
file=Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
try {
file.initWithPath(dscfname);
}catch (e)
{
alert(e);
}
The error is [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: http: saveInput_ff :: line 241" data: no].
Please help me to solve this problem
Thanks in advance.