Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CK Finder max upload size doesn't seem to take effect.

Posted on 2013-02-06
2
Medium Priority
?
2,121 Views
Last Modified: 2013-02-06
I have an installation of ckeditor and ckfinder on my server.  It seems to use a threshold of 2mb for the max file size for an image or pdf upload (I assume other types as well, but I haven't tried).

I went into the /var/www/ckfinderPHP/config.php and changed the `maxSize` field for all of the ResourceTypes to 5M, 10M, and even 0, but it still doesn't seem to take effect.

I checked my server with a
<?php echo  phpinfo(); ?>

Open in new window

and it has an effective upload_max_filesize of 5M.  The file I am testing with is only `2,449,408 bytes`

My question is how can I check to see what the effective max upload size is for my ckfinder installation and/or how can I change it?

Below is some detail as far as what I've done/understand.  

I have checked the ajax call to http://website.com/ckfinder/core/connector/php/connector.php?command=Init and it doesn't seem to return anything about max file size.

Here is the returned result (I just changed the domain name):

<Connector>
	<Error number="0"/>
  <ConnectorInfo enabled="true" s="" c="" thumbsEnabled="true" thumbsUrl="/website.com/userfiles/_thumbs/" thumbsDirectAccess="false" imgWidth="1600" imgHeight="1200" plugins="imageresize,fileeditor"/>
  <ResourceTypes>
    
    <ResourceType name="Files" url="/website.com/userfiles/files/" allowedExtensions="7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip" deniedExtensions="" hash="62f5f3f9116ca90e" hasChildren="false" acl="255"/>
    
    <ResourceType name="Images" url="/website.com/userfiles/images/" allowedExtensions="bmp,gif,jpeg,jpg,png,avi,iso,mp3,pdf" deniedExtensions="" hash="e49de671ead7fdb0" hasChildren="false" acl="255"/>
    
    <ResourceType name="Flash" url="/website.com/userfiles/flash/" allowedExtensions="swf,flv" deniedExtensions="" hash="807ba6318e61f594" hasChildren="false" acl="255"/>
  </ResourceTypes>
  
  <PluginsInfo>
    <imageresize smallThumb="90x90" mediumThumb="120x120" largeThumb="180x180"/>
  </PluginsInfo>
</Connector>

Open in new window


The file that generates this is found at: /var/www/ckfinderPHP/core/connector/php/php5/CommandHandler/Init.php

This has the lines:
// Create the "ResourceTypes" node.
        $_oResourceTypes = new Ckfinder_Connector_Utils_XmlNode("ResourceTypes");
        $this->_connectorNode->addChild($_oResourceTypes);

Open in new window


Which I traced back to: /var/www/ckfinderPHP/core/connector/php/php5/Utils/XmlNode.php

But it is here where I lose track of what is happening.

Any help is appreciated, Dan.
0
Comment
Question by:andrewaiello
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Slimshaneey earned 2000 total points
ID: 38859989
The problem is more likely to be found in your PHP.ini page, check the upload_max_filesize and post_max_size  vars, and set them to 5M and restart apache. Try then.
0
 
LVL 1

Author Closing Comment

by:andrewaiello
ID: 38860126
I just realized I forgot about 1 major detail.  My ckfinder/ckeditor folders are 1 directory above the root so I can use them for multiple sites.  I had my .htaccess file in the website's root, not the server's webroot.  Once I moved it to the proper place the uploads worked fine.

Slimshaneey, your comment refocused my thinking and caused me to realize this, thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question