Author Topic: Problem with attachments in php 5.3.1  (Read 3186 times)

Offline TechMonster

  • Jr. Member
  • **
  • Posts: 34
Problem with attachments in php 5.3.1
« on: December 29, 2009, 11:23:08 AM »
My temp server was running 5.2.11 with no problems with adding attachments.  I moved to the new server which was php 5.3.1 and most attachments (weird a .ppt or .xls works but rest does not) will not add to a new email. I tried running the old 5.2.11 php.ini on 5.3.1 engine and it still did not work. My temp solution was to install 5.2.11 engine. Does anyone else have this issue or at least a solution? This is Apache 2.2 and running on windows.

Thanks
Travis

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Problem with attachments in php 5.3.1
« Reply #1 on: December 29, 2009, 11:43:28 AM »
try adding the file types in the [RC root]/config/mimetypes.php

Offline TechMonster

  • Jr. Member
  • **
  • Posts: 34
Problem with attachments in php 5.3.1
« Reply #2 on: December 29, 2009, 11:23:28 PM »
OK that helped. But this brings a few questions. First. Why would I need to define a mime type for sending attachments? Second I couldn't possibility list all the mime types for all my customers. Do you have a general catch all? What changed in php version 5.2.11 to 5.3.1 that doesn't allow this to catch all? In 5.2.11 I can upload my .emodel files but in 5.3.1 I can't without adding this mime type.
Thanks
Travis

Offline TechMonster

  • Jr. Member
  • **
  • Posts: 34
Problem with attachments in php 5.3.1
« Reply #3 on: December 31, 2009, 10:00:56 PM »
Bump no comments?