CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • file attachments are coverted to different formats
Pages: [1]

Author Topic: file attachments are coverted to different formats  (Read 1708 times)

aholder

  • Guest
file attachments are coverted to different formats
January 08, 2010, 09:03:47 am
When I attach any files to an email in CiviCRM, the file gets converted to a file that is not a recognizable format.  For example, hendricks.pdf gets converted to hendricks_103dd025473cdafcba060d3f2d86338epdf.   I did not have this problem before I upgraded to 3.0.3.

I saw a similar post on this - http://forum.civicrm.org/index.php?topic=7118.0, but it sounds like it got resolved 2.2.1.  So I am not sure if it is approriate to apply a patch from an earlier version.  I can't find any issues in 3.0.3 on this either.

How do I fix this?   ???

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: file attachments are coverted to different formats
January 09, 2010, 12:02:06 pm
I think CiviCRM rename uploaded files due to security reasons.

Kurund
Found this reply helpful? Support CiviCRM

aholder

  • Guest
Re: file attachments are coverted to different formats
January 11, 2010, 06:33:50 am
Do we then need to change some security settings on our end, or is Civicrm permanently going to be doing this from now on?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: file attachments are coverted to different formats
January 11, 2010, 02:32:32 pm

there was a bug in the code, the file should have been renamed to:

hendricks_103dd025473cdafcba060d3f2d86338e.pdf

i fixed it for 3.0 and this will be part of the next release

the diff is here:

http://fisheye2.atlassian.com/browse/CiviCRM/branches/v3.0/CRM/Utils/File.php?r1=24848&r2=25836

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

aholder

  • Guest
Re: file attachments are coverted to different formats
January 15, 2010, 08:09:59 am
This fixed the problem.  Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • file attachments are coverted to different formats

This forum was archived on 2017-11-26.