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
Attach pdf to News article
-
- Forum Members
- Posts: 16
- Joined: Tue Aug 11, 2009 3:26 pm
Re: Attach pdf to News article
Still not solved this 

Re: Attach pdf to News article
Never used this option, but the detail template says:
Did you try to upload an image? Just to see if this works.
Rolf
Perhaps PDF isn't an option with this template...{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Forum Members
- Posts: 16
- Joined: Tue Aug 11, 2009 3:26 pm
Re: Attach pdf to News article
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
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
-
- Forum Members
- Posts: 16
- Joined: Tue Aug 11, 2009 3:26 pm
Re: Attach pdf to News article
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!
GRRR!
Re: Attach pdf to News article
Are you sure the upload limits are changed? Not all hosts accept changing the limits and it is ignored.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.
Check your php-info for this.
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Forum Members
- Posts: 16
- Joined: Tue Aug 11, 2009 3:26 pm
Re: Attach pdf to News article
We're running IIS 

Re: Attach pdf to News article
Well there is your biggest problem... 
