Page 1 of 1

News Module File Upload

Posted: Thu Apr 24, 2008 2:58 pm
by Probocop
I am using the news module for some of the content on the website I'm developing.

What I want to know is how can I make a field on the create article form to allow uploading PDF's? I tried just adding a custom field but I get the following error message upon pressing submit if I select a PDF file:

error -- Cannot upload this type of file (Troubleshooting)

How would I go about doing this?

Dave

Re: News Module File Upload

Posted: Mon Apr 28, 2008 8:45 am
by Probocop
Bump

Re: News Module File Upload

Posted: Sat May 10, 2008 10:33 pm
by Dr.CSS
You may want to use the Uploads module and insert it into the news module template...

Re: News Module File Upload

Posted: Sun May 11, 2008 6:39 am
by jimbowes
In the news module there is an options tab where you can specify file types allowed - by default it is:

gif,png,jpeg,jpg

You should just be able to add PDF to this.

I think the template code that puts this in your article looks to see if the file is and image or something else - there are some if statements that control the behaviour.

Best

Jim