News Module File Upload

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Probocop
Forum Members
Forum Members
Posts: 12
Joined: Fri Apr 11, 2008 8:32 am

News Module File Upload

Post 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
Probocop
Forum Members
Forum Members
Posts: 12
Joined: Fri Apr 11, 2008 8:32 am

Re: News Module File Upload

Post by Probocop »

Bump
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Module File Upload

Post by Dr.CSS »

You may want to use the Uploads module and insert it into the news module template...
jimbowes
Forum Members
Forum Members
Posts: 20
Joined: Wed Mar 19, 2008 2:54 pm

Re: News Module File Upload

Post 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
Post Reply

Return to “Modules/Add-Ons”