[Freeswitch-users] [ERR] helloworld.js:8 Exception: ReferenceError: File is not defined

Peter Olsson peter at olssononline.se
Wed Jun 15 22:41:00 MSD 2016


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 at 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 at olssononline.se> wrote:
>
>> As referenced here, "File" is not available in mod_v8.
>>
>> https://freeswitch.org/confluence/display/FREESWITCH/JavaScript
>>
>> /Peter
>>
>> 2016-06-09 20:28 GMT+02:00 Aqs Younas <aqsyounas at 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 at 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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160615/eef926bf/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list