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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • How to be logged in with proper permissions to edit, add, or ... uploaded images
Pages: [1]

Author Topic: How to be logged in with proper permissions to edit, add, or ... uploaded images  (Read 751 times)

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
How to be logged in with proper permissions to edit, add, or ... uploaded images
January 25, 2015, 05:20:32 am
Hi,

I want to insert an Image inside a New Mail Model (CiviMail) (using CKEditor)

To do this, I want to upload this jpg image (84 kb) from my PC ;

But I can't, and get the following message : "You must be logged in with proper permissions to edit, add, or delete uploaded images."

I am an Administrator, with full permissions in Drupal.

Where is the problem ?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: How to be logged in with proper permissions to edit, add, or ... uploaded images
January 25, 2015, 05:59:43 am
Are you actually the drupal "superuser" user/1 or just a user with an administrator role? The latter is no guarantee that you have the civicrm upload files permission - can you check that?
Try asking your question on the new CiviCRM help site.

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Re: How to be logged in with proper permissions to edit, add, or ... uploaded images
January 25, 2015, 07:11:25 am
Hi, Coleman

Thank you for your answer (and question)

I am User/1 in Drupal

I am actually wondering if this message comes from Drupal, or from Civi ?

To be more precise, as far as I know, Images are supposed to be uploaded in .../drupal/sites/default/files/civicrm/persist/contribute/  (default), and I have checked that this directory has 777 permissions.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: How to be logged in with proper permissions to edit, add, or ... uploaded images
January 25, 2015, 07:19:42 am
Grepping for that string it looks like it's triggered when authenticate_drupal returns FALSE.
https://github.com/civicrm/civicrm-packages/blob/master/kcfinder/integration/civicrm.php#L85

Not sure why it would do so through...
Try asking your question on the new CiviCRM help site.

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Re: How to be logged in with proper permissions to edit, add, or ... uploaded images
January 26, 2015, 07:55:40 am
Thank you for your answer, but it does not help me :

When I upload a default image for Drupal Basic Pages (via Structure > Content Type > Basic Page), I don't have any permission problem. So, it does not appear to be a Drupal problem (?)

BTW, I have an other site, using CiviCRM 4.4.10, which has not this problem

I can turn around this problem, using FTP instead of uploaing via CiviCRM (which works), but only as a provisional solution.

Would you mind accessing my site as an admin, to check by yourself ? (My site is not in production yet)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • How to be logged in with proper permissions to edit, add, or ... uploaded images

This forum was archived on 2017-11-26.