Page 1 of 1

Attach pdf to News article

Posted: Tue Dec 15, 2009 10:21 am
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

Re: Attach pdf to News article

Posted: Thu Dec 17, 2009 10:42 am
by doodleflip
Still not solved thisĀ  :(

Re: Attach pdf to News article

Posted: Thu Dec 17, 2009 10:54 am
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

Re: Attach pdf to News article

Posted: Thu Dec 17, 2009 11:05 am
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

Re: Attach pdf to News article

Posted: Thu Dec 17, 2009 11:25 am
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!

Re: Attach pdf to News article

Posted: Thu Dec 17, 2009 11:43 am
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

Re: Attach pdf to News article

Posted: Thu Dec 17, 2009 12:22 pm
by doodleflip
We're running IISĀ  :(

Re: Attach pdf to News article

Posted: Thu Dec 17, 2009 6:51 pm
by Dr.CSS
Well there is your biggest problem... :)