Hi Buddima,

You can get the server home folder path using this
"require('process').getProperty('carbon.home')" in jaggery. don't know
whether that will help or not :)

Thanks,


On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake <uda...@wso2.com> wrote:

> Hi Buddhima,
>
> If you upload a zip file to any location within
> <JAGGERY_SERVER>/repository/deployment/server/jaggeryapps/ , server will
> treat that file as a webapp and unzip it for you.
>
> You can try this behavior by copying a zip file to a directory inside your
> webapp. But I'm not sure whether this behaviour is correct or not.
> File API[1] might help you further.
>
> [1] http://jaggeryjs.org/documentation.jag?api=file
>
> Regards,
> UdaraR
>
>
> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera <buddh...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I'm currently developing a Jaggery app, which user can upload a zip file.
>> After uploading the zip file, Jaggery app should extract that zip file &
>> put the content in to a folder (at server-side).
>>
>> So I would like to know how can I do this or is there any place where
>> this is already implemented.
>>
>> Thank You!
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog    : http://udarakr.blogspot.com
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to