Attach pdf to News article

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Attach pdf to News article

Post by doodleflip »

Hi there,

I need to find a way to attach a pdf document to a news article.

I've added an 'attach file' custom field through the 'file defintion' tab of the news module. And this has been added to the add article screen. All good so far. I've also added the file type 'pdf' in the Options tab.

I'm still getting an error when I try to attach the pdf to an article. I get the 'Problem occurred uploading a file (Troubleshooting)' message. I've followed the instructions on the troubleshooting page, and replaced the code that it suggests in the summary and detail templates, but no good.

This is annoying me so much!!

Any help would be greatly appreciated.

Thanks
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Re: Attach pdf to News article

Post by doodleflip »

Still not solved this  :(
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Attach pdf to News article

Post by Rolf »

Never used this option, but the detail template says:
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
Perhaps PDF isn't an option with this template...

Did you try to upload an image? Just to see if this works.

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Re: Attach pdf to News article

Post by doodleflip »

I've just tried attaching a jpg, and although it initially timed out and crashed my browser, it worked.

I've just tried attaching a different (smaller) pdf, and it worked. Looks like my issue is with the size of the pdf I'm trying to upload.

How can I increase the maximum file upload size in CMSMS? Any ideas?

Thanks
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Re: Attach pdf to News article

Post by doodleflip »

Ok, after a little forum searching, I've changed the config.php file to reflect a higher file upload limit. Still getting the same error though with this one PDF.

GRRR!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Attach pdf to News article

Post by Rolf »

doodleflip wrote: Ok, after a little forum searching, I've changed the config.php file to reflect a higher file upload limit. Still getting the same error though with this one PDF.
Are you sure the upload limits are changed? Not all hosts accept changing the limits and it is ignored.
Check your php-info for this.

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Re: Attach pdf to News article

Post by doodleflip »

We're running IIS  :(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Attach pdf to News article

Post by Dr.CSS »

Well there is your biggest problem... :)
Post Reply

Return to “CMSMS Core”