Link to uploaded PDF file?

17 views
Skip to first unread message

Dmitrii Dimandt

unread,
Oct 24, 2012, 6:33:52 AM10/24/12
to zotoni...@googlegroups.com
Hi all

I uploaded a PDF file to media section. How can I retrieve the link to the actual PDF file that I can share? I see that it's uploaded to lib/archive/2012/10/24/xxx.pdf. However, when I try to access it from http://mysite/lib/archive/2012/10/24/xxx.pdf, I get a 404.

This could be a configuration issue though…


Arjan Scherpenisse

unread,
Oct 24, 2012, 6:41:06 AM10/24/12
to zotoni...@googlegroups.com
The file is stored under the files/archive/ directory in your site.

If you visit the media page for the file in the admin, you see a
"download" button, which is actually a link.

The media attachment dispatch rule from mod_base serves these files:

http://zotonic.com/docs/ref/dispatch/dispatch_mod_base-dispatch.html?highlight=media_attachment


Hope that helps.

Arjan

On 10/24/2012 12:33 PM, Dmitrii Dimandt wrote:
> Hi all
>
> I uploaded a PDF file to media section. How can I retrieve the link to the actual PDF file that I can share? I see that it's uploaded to lib/archive/2012/10/24/xxx.pdf. However, when I try to access it from http://mysite/lib/archive/2012/10/24/xxx.pdf, I get a 404.
>
> This could be a configuration issue though�
>
>
>

Dmitrii Dimandt

unread,
Oct 24, 2012, 6:53:33 AM10/24/12
to zotoni...@googlegroups.com

> The file is stored under the files/archive/ directory in your site.
>
> If you visit the media page for the file in the admin, you see a "download" button, which is actually a link.
>

Aha! Didn't see that button. Thanks!


> The media attachment dispatch rule from mod_base serves these files:
>
> http://zotonic.com/docs/ref/dispatch/dispatch_mod_base-dispatch.html?highlight=media_attachment
>

Thanks!

>
> Hope that helps.
>
> Arjan
>
> On 10/24/2012 12:33 PM, Dmitrii Dimandt wrote:
>> Hi all
>>
>> I uploaded a PDF file to media section. How can I retrieve the link to the actual PDF file that I can share? I see that it's uploaded to lib/archive/2012/10/24/xxx.pdf. However, when I try to access it from http://mysite/lib/archive/2012/10/24/xxx.pdf, I get a 404.
>>
>> This could be a configuration issue though…
>>
>>
>>

Reply all
Reply to author
Forward
0 new messages