Answers.Body: <p>Sounds like a combination of a slow-ish server/network, too many images and possibly some configuration bits.</p>
  
  <p>The KCfinder runs in a little popup window that makes it extra difficult to diagnose, and tries to load thumbnails of all your existing images so you can select one. All that work is overloading both your network and your server (and maybe even your browser, though unlikely).</p>
  
  <p>You may be able to customize kcfinder so that it's not generating quite so many thumbnails, and/or fix your server so that it doesn't have to do it each time (i.e. with some caching, though that's a bit tricky, e.g. ensure you have mod_expires enabled with apache).</p>
  
  <p>You're right that you're somewhat painted into a corner, and a more powerful server might be the easiest solution.</p>
  
  <p>Alternatively, you could set up a separate directory for old images and move over ones that are more than a month old.</p>
  
  <p>Going forward, you may also want to make sure you're not uploading really large images, i.e. scale them on your own machine before uploading them.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-03T15:29:40.587Z
Answers.LastActivityDate: 2020-06-03T15:29:40.587Z
Answers.UserDisplayName: Alan Dixon
Answers.Body: <p>KCFinder is crappy sometimes. May I advice you to use Summernote editor instead of CKEditor (version 4 is EOL)? Summernote replaces KCFinder with elFinder: <a href="https://civicrm.org/extensions/summernote" rel="nofollow noreferrer">https://civicrm.org/extensions/summernote</a> (please follow all installation notes).</p>
  <p>Why am I asking you to do this? Because you can trim your problem down to a &quot;slowish server&quot; or a &quot;crappy KCFinder&quot;. Depending on the outcome you may decide your next steps.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-14T08:55:48.573Z
Answers.LastActivityDate: 2024-02-14T08:55:48.573Z
Answers.UserDisplayName: wintermoor
Body: <p>Following on from many many months of difficulties with <a href="https://civicrm.stackexchange.com/questions/22549/ckfinder-has-become-terribly-slow-in-civimail">KCFinder being incredibly slow</a>, and <a href="https://civicrm.stackexchange.com/questions/28983/civimail-kcfinder-becoming-nearly-unusable">other posts</a>, we now have a situation where KCFinder 'sometimes' refuses to upload images. </p>
  
  <p>We haven't yet found a pattern as to when it does and doesn't upload images. We can always upload the images directly to the folder by ftp.</p>
  
  <p>We have over 1,000 pictures in the folder, so it's quite likely that's the cause! :-(</p>
  
  <p>But how can we gain control of the situation? It's hard to simply delete images since they may have been used in recent emails. </p>
  
  <p>I've tried looking in /var/log/apache2/error_log, the Civicrm log and Drupal log, and none show any issues. We're using Drupal latest and Civicrm 5.24.4. Thanks for any help you can give us!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-02T21:12:17.603Z
Comments.Text: Can you confirm if this is a problem in both Chrome and FF? There is a known bug with file upload/delete in drupal with latest chrome. no idea if related but you may as well check
Comments.UserDisplayName: petednz - fuzion
Tags: <ckeditor><images>
Title: KCFinder sometimes won't upload images
ThreadText: # KCFinder sometimes won't upload images
  
  (Asked by: username_0 on 2020-06-02)
  
  Following on from many many months of difficulties with [KCFinder being incredibly slow](https://civicrm.stackexchange.com/questions/22549/ckfinder-has-become-terribly-slow-in-civimail), and [other posts](https://civicrm.stackexchange.com/questions/28983/civimail-kcfinder-becoming-nearly-unusable), we now have a situation where KCFinder 'sometimes' refuses to upload images.
  
  We haven't yet found a pattern as to when it does and doesn't upload images. We can always upload the images directly to the folder by ftp.
  
  We have over 1,000 pictures in the folder, so it's quite likely that's the cause! :-(
  
  But how can we gain control of the situation? It's hard to simply delete images since they may have been used in recent emails.
  
  I've tried looking in /var/log/apache2/error\_log, the Civicrm log and Drupal log, and none show any issues. We're using Drupal latest and Civicrm 5.24.4. Thanks for any help you can give us!
  
  **Tags:** ckeditor, images
  
  > **Comments:**
  > **username_1**: Can you confirm if this is a problem in both Chrome and FF? There is a known bug with file upload/delete in drupal with latest chrome. no idea if related but you may as well check  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2020-06-03. Score: 0
  
  Sounds like a combination of a slow-ish server/network, too many images and possibly some configuration bits.
  
  The KCfinder runs in a little popup window that makes it extra difficult to diagnose, and tries to load thumbnails of all your existing images so you can select one. All that work is overloading both your network and your server (and maybe even your browser, though unlikely).
  
  You may be able to customize kcfinder so that it's not generating quite so many thumbnails, and/or fix your server so that it doesn't have to do it each time (i.e. with some caching, though that's a bit tricky, e.g. ensure you have mod\_expires enabled with apache).
  
  You're right that you're somewhat painted into a corner, and a more powerful server might be the easiest solution.
  
  Alternatively, you could set up a separate directory for old images and move over ones that are more than a month old.
  
  Going forward, you may also want to make sure you're not uploading really large images, i.e. scale them on your own machine before uploading them.
  
  
  ---
  
  ### Answer by username_3 on 2024-02-14. Score: 0
  
  KCFinder is crappy sometimes. May I advice you to use Summernote editor instead of CKEditor (version 4 is EOL)? Summernote replaces KCFinder with elFinder: <https://civicrm.org/extensions/summernote> (please follow all installation notes).
  
  Why am I asking you to do this? Because you can trim your problem down to a "slowish server" or a "crappy KCFinder". Depending on the outcome you may decide your next steps.
  
  
  ---
  
  