1
andycleff
News 1.44 - Trouble with file attachments
  • 2006/12/6 14:25

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


Having some intermitent trouble with file attachments to articles on News 1.44.

Sometimes they attach to an article, sometimes they fail.

Using the insanity approach - trying the same attachment over and over expecting success - sometimes does work, but alas not today.

Intallation is:
Xoops 2.0.13.2 (an upgrade to 2.0.16 is on the to do list, just not this week....)
News 1.44

Not a file size issue, have max file size set to 5Mb (5048576)
Not a server disk allocation issue (170MB available)

Error message on failure to attach is:
Error while uploading the file
Errors Returned While Uploading
Unknown filetype rejected
MIME type not allowed: application/pdf
Thanks for your submission.

(At least we're polite...)

Attachment is just a plain ol' 81K PDF and we've been able to attach PDFs to other News articles.

Any ideas how to check/adjust New's allowed file types?
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

http://www.ampersandesign.net

2
andycleff
Re: News 1.44 - Trouble with file attachments
  • 2006/12/6 14:38

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


Hey, I figured it out!

It appears that MIME types are case sensitive.

I renamed the to-be-attached file to *.pdf from *.PDF and it worked.

And thanks to tvook and this thread I found this info:

Quote:
The news uploader is using class/uploader.php so mime types for the files uploaded needs to be defined (the defaults are jpg, png, gif, pdf zir, tar jtar (open file news/submit.php and look for (round line 326)


Should be able to add PDF (all caps) as an allowed MIME type.

Does this make sense?
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

http://www.ampersandesign.net

Login

Who's Online

385 user(s) are online (320 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits