Re: [Zotonic-Dev] allow a user to download files?

2016-11-30 Thread Marc Worrell
Try making it a string, when it is an atom then the controller thinks it is a 
module.

- Marc


> On 29 Nov 2016, at 11:50, heiheshang  wrote:
> 
> folder
> 
> вторник, 29 ноября 2016 г., 2:05:58 UTC+9 пользователь Marc Worrell написал:
> What is the “my” root?
> 
> - Marc
> 
>> On 28 Nov 2016, at 17:18, heiheshang > 
>> wrote:
>> 
>> allow a user to download files? I did dispath but get forbiden
>> {my_download, [ "my", '*' ], controller_file, [ {root, [my]}, 
>> {content_disposition,attachment}, {ssl,true}, {acl, is_auth} ]}
>> 
>> 
>> 
>> 
>> -- 
>> 
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Zotonic developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to zotonic-developers+unsubscr...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Zotonic developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to zotonic-developers+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Zotonic-Dev] allow a user to download files?

2016-11-29 Thread heiheshang
folder

вторник, 29 ноября 2016 г., 2:05:58 UTC+9 пользователь Marc Worrell написал:
>
> What is the “my” root?
>
> - Marc
>
> On 28 Nov 2016, at 17:18, heiheshang > 
> wrote:
>
> allow a user to download files? I did dispath but get forbiden
> {my_download, [ "my", '*' ], controller_file, [ {root, [my]}, 
> {content_disposition,attachment}, {ssl,true}, {acl, is_auth} ]}
>
>
>
>
> -- 
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Zotonic developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to zotonic-developers+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Zotonic-Dev] allow a user to download files?

2016-11-28 Thread Marc Worrell
What is the “my” root?

- Marc

> On 28 Nov 2016, at 17:18, heiheshang  wrote:
> 
> allow a user to download files? I did dispath but get forbiden
> {my_download, [ "my", '*' ], controller_file, [ {root, [my]}, 
> {content_disposition,attachment}, {ssl,true}, {acl, is_auth} ]}
> 
> 
> 
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Zotonic developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to zotonic-developers+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Zotonic-Dev] allow a user to download files?

2016-11-28 Thread heiheshang
allow a user to download files? I did dispath but get forbiden
{my_download, [ "my", '*' ], controller_file, [ {root, [my]}, 
{content_disposition,attachment}, {ssl,true}, {acl, is_auth} ]}



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.