title: KCFinder issue with PDF uploads
body: <p>I am trying to use standalone KCFinder to upload PDF files and images. Just downloaded the zip from their website and started to build up the "system" and it works perfect with images. The problem is when I want to upload PDF files, I get an error: "Unknown image format/encoding".</p>
  
  <p><strong>NOTE</strong>: When I open my KCFinder standalone it is already on the folder "images" and not "upload". I know this can be the cause but I can't find out how to change this...</p>
  
  <p>Here is my config.php:</p>
  
  <pre><code>$_CONFIG = array(
  // GENERAL SETTINGS
  
      'browse.php?lang'=&gt;sv,
      'disabled' =&gt; false,
      'theme' =&gt; "oxygen",
      'uploadURL' =&gt; "upload",
      'uploadDir' =&gt; "",
  
      'types' =&gt; array(
  
      // (F)CKEditor types
          'files'   =&gt;  "",
          'flash'   =&gt;  "swf",
          'images'  =&gt;  "*img",
          'misc'      =&gt; "pdf doc docx xls xlsx",
  
      // TinyMCE types
          'file'    =&gt;  "",
          'media'   =&gt;  "swf flv avi mpg mpeg qt mov wmv asf rm",
          'image'   =&gt;  "*img",
      ),
  
  
  // IMAGE SETTINGS
  
      'imageDriversPriority' =&gt; "imagick gmagick gd",
      'jpegQuality' =&gt; 90,
      'thumbsDir' =&gt; ".thumbs",
  
      'maxImageWidth' =&gt; 0,
      'maxImageHeight' =&gt; 0,
  
      'thumbWidth' =&gt; 100,
      'thumbHeight' =&gt; 100,
  
      'watermark' =&gt; "",
  
  
  // DISABLE / ENABLE SETTINGS
  
      'denyZipDownload' =&gt; false,
      'denyUpdateCheck' =&gt; false,
      'denyExtensionRename' =&gt; false,
  
  
  // PERMISSION SETTINGS
  
      'dirPerms' =&gt; 0755,
      'filePerms' =&gt; 0644,
  
      'access' =&gt; array(
  
          'files' =&gt; array(
              'upload' =&gt; true,
              'delete' =&gt; true,
              'copy'   =&gt; true,
              'move'   =&gt; true,
              'rename' =&gt; true
          ),
  
          'dirs' =&gt; array(
              'create' =&gt; true,
              'delete' =&gt; true,
              'rename' =&gt; true
          )
      ),
  
      'deniedExts' =&gt; "exe com msi bat php phps phtml php3 php4 cgi pl",
  
  
  // MISC SETTINGS
  
      'filenameChangeChars' =&gt; array(/*
          ' ' =&gt; "_",
          ':' =&gt; "."
      */),
  
      'dirnameChangeChars' =&gt; array(/*
          ' ' =&gt; "_",
          ':' =&gt; "."
      */),
  
      'mime_magic' =&gt; "",
  
      'cookieDomain' =&gt; "",
      'cookiePath' =&gt; "",
      'cookiePrefix' =&gt; 'KCFINDER_',
  
  
  // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
  
      '_check4htaccess' =&gt; true,
      //'_tinyMCEPath' =&gt; "/tiny_mce",
  
      '_sessionVar' =&gt; &amp;$_SESSION['KCFINDER'],
      //'_sessionLifetime' =&gt; 30,
      //'_sessionDir' =&gt; "/full/directory/path",
  
      //'_sessionDomain' =&gt; ".mysite.com",
      //'_sessionPath' =&gt; "/my/path",
  );
  </code></pre>
  
  <p>Does anyone know what I am doing wrong?</p>