I think you missunderstood me. The js "File" object doesn't exist in mod_v8, so it can't be used in the script.

/Peter

2016-06-14 20:44 GMT+02:00 Aqs Younas <aqsyounas@gmail.com>:
Thanks for your reply.

But the file exists on the specified path, I can open the file using FileIO but when i try to use File i get this error.

Any pointer?

On 10 June 2016 at 17:41, Peter Olsson <peter@olssononline.se> wrote:
As referenced here, "File" is not available in mod_v8.


/Peter

2016-06-09 20:28 GMT+02:00 Aqs Younas <aqsyounas@gmail.com>:
Greetings list. 

I am getting below error when i am trying open a file in mod_v8. 

2016-06-02 01:40:44.908007 [ERR] helloworld.js:8 Exception: ReferenceError: File is not defined (near: "        fd = new File(baseFolder + "/" + menuId + ".json");")

Any pointer is much appreciated 

Thanks. 

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org