I have installed ckfinder2.1 with my struts2 applications.
Ckfinder manager interface was displayed normally.
But when I tried to upload files , No response and all folders were empty.
List my config.xml below:
<config>
<enabled>true</enabled>
<baseDir></baseDir>
<baseURL>/bjrsrc/upload/</baseURL>
<licenseKey></licenseKey>
<licenseName></licenseName>
<imgWidth>1600</imgWidth>
<imgHeight>1200</imgHeight>
<imgQuality>80</imgQuality>
<uriEncoding>UTF-8</uriEncoding>
<forceASCII>false</forceASCII>
<userRoleSessionVar>CKFinder_UserRole</userRoleSessionVar>
<checkDoubleExtension>true</checkDoubleExtension>
<checkSizeAfterScaling>true</checkSizeAfterScaling>
<secureImageUploads>true</secureImageUploads>
<htmlExtensions>html,htm,xml,js</htmlExtensions>
<hideFolders>
<folder>.svn</folder>
<folder>CVS</folder>
</hideFolders>
<hideFiles>
<file>.*</file>
</hideFiles>
<defaultResourceTypes></defaultResourceTypes>
<types>
<type name="Files">
<url>%BASE_URL%files/</url>
<directory>%BASE_DIR%files</directory>
<maxSize>0</maxSize>
<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
</allowedExtensions>
<deniedExtensions></deniedExtensions>
</type>
<type name="Images">
<url>%BASE_URL%images/</url>
<directory>%BASE_DIR%images</directory>
<maxSize>0</maxSize>
<allowedExtensions>bmp,gif,jpeg,jpg,png</allowedExtensions>
<deniedExtensions></deniedExtensions>
</type>
<type name="Flash">
<url>%BASE_URL%flash/</url>
<directory>%BASE_DIR%flash</directory>
<maxSize>0</maxSize>
<allowedExtensions>swf,flv</allowedExtensions>
<deniedExtensions></deniedExtensions>
</type>
</types>
<accessControls>
<accessControl>
<role>*</role>
<resourceType>*</resourceType>
<folder>/</folder>
<folderView>true</folderView>
<folderCreate>true</folderCreate>
<folderRename>true</folderRename>
<folderDelete>true</folderDelete>
<fileView>true</fileView>
<fileUpload>true</fileUpload>
<fileRename>true</fileRename>
<fileDelete>true</fileDelete>
</accessControl>
</accessControls>
<thumbs>
<enabled>true</enabled>
<url>%BASE_URL%_thumbs/</url>
<directory>%BASE_DIR%_thumbs</directory>
<directAccess>false</directAccess>
<maxHeight>100</maxHeight>
<maxWidth>100</maxWidth>
<quality>80</quality>
</thumbs>
<plugins>
<plugin>
<name>imageresize</name>
<class>com.ckfinder.connector.plugins.ImageResize</class>
<params>
<param name="smallThumb" value="90x90"></param>
<param name="mediumThumb" value="120x120"></param>
<param name="largeThumb" value="180x180"></param>
</params>
</plugin>
<plugin>
<name>fileeditor</name>
<class>com.ckfinder.connector.plugins.FileEditor</class>
<params></params>
</plugin>
</plugins>
<basePathBuilderImpl>com.ckfinder.connector.configuration.ConfigurationPathBuilder</basePathBuilderImpl>
</config>
Some details are:
1. When uploaded file is bigger, System tells:Servlet.service() for servlet ConnectorServlet threw exception java.lang.OutOfMemoryError: Java heap space
It is OK. I know reason.
2. When uploaded file is small under 100K,Not any response occur. No error but all folders are empty.
3. I have rewrite struts2 dispather, it didn't inspect ckfinder/core/connector
4. When flashupload plugin used, a ! occur in front of upload filename. After disabled flashupload plugin,No response again.
5.When ckfinder installed as war package, it works ok. This question occur only when ckfinder integrating into my ssh2 application.
Thank for your suggestion.
Ckfinder manager interface was displayed normally.
But when I tried to upload files , No response and all folders were empty.
List my config.xml below:
<config>
<enabled>true</enabled>
<baseDir></baseDir>
<baseURL>/bjrsrc/upload/</baseURL>
<licenseKey></licenseKey>
<licenseName></licenseName>
<imgWidth>1600</imgWidth>
<imgHeight>1200</imgHeight>
<imgQuality>80</imgQuality>
<uriEncoding>UTF-8</uriEncoding>
<forceASCII>false</forceASCII>
<userRoleSessionVar>CKFinder_UserRole</userRoleSessionVar>
<checkDoubleExtension>true</checkDoubleExtension>
<checkSizeAfterScaling>true</checkSizeAfterScaling>
<secureImageUploads>true</secureImageUploads>
<htmlExtensions>html,htm,xml,js</htmlExtensions>
<hideFolders>
<folder>.svn</folder>
<folder>CVS</folder>
</hideFolders>
<hideFiles>
<file>.*</file>
</hideFiles>
<defaultResourceTypes></defaultResourceTypes>
<types>
<type name="Files">
<url>%BASE_URL%files/</url>
<directory>%BASE_DIR%files</directory>
<maxSize>0</maxSize>
<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
</allowedExtensions>
<deniedExtensions></deniedExtensions>
</type>
<type name="Images">
<url>%BASE_URL%images/</url>
<directory>%BASE_DIR%images</directory>
<maxSize>0</maxSize>
<allowedExtensions>bmp,gif,jpeg,jpg,png</allowedExtensions>
<deniedExtensions></deniedExtensions>
</type>
<type name="Flash">
<url>%BASE_URL%flash/</url>
<directory>%BASE_DIR%flash</directory>
<maxSize>0</maxSize>
<allowedExtensions>swf,flv</allowedExtensions>
<deniedExtensions></deniedExtensions>
</type>
</types>
<accessControls>
<accessControl>
<role>*</role>
<resourceType>*</resourceType>
<folder>/</folder>
<folderView>true</folderView>
<folderCreate>true</folderCreate>
<folderRename>true</folderRename>
<folderDelete>true</folderDelete>
<fileView>true</fileView>
<fileUpload>true</fileUpload>
<fileRename>true</fileRename>
<fileDelete>true</fileDelete>
</accessControl>
</accessControls>
<thumbs>
<enabled>true</enabled>
<url>%BASE_URL%_thumbs/</url>
<directory>%BASE_DIR%_thumbs</directory>
<directAccess>false</directAccess>
<maxHeight>100</maxHeight>
<maxWidth>100</maxWidth>
<quality>80</quality>
</thumbs>
<plugins>
<plugin>
<name>imageresize</name>
<class>com.ckfinder.connector.plugins.ImageResize</class>
<params>
<param name="smallThumb" value="90x90"></param>
<param name="mediumThumb" value="120x120"></param>
<param name="largeThumb" value="180x180"></param>
</params>
</plugin>
<plugin>
<name>fileeditor</name>
<class>com.ckfinder.connector.plugins.FileEditor</class>
<params></params>
</plugin>
</plugins>
<basePathBuilderImpl>com.ckfinder.connector.configuration.ConfigurationPathBuilder</basePathBuilderImpl>
</config>
Some details are:
1. When uploaded file is bigger, System tells:Servlet.service() for servlet ConnectorServlet threw exception java.lang.OutOfMemoryError: Java heap space
It is OK. I know reason.
2. When uploaded file is small under 100K,Not any response occur. No error but all folders are empty.
3. I have rewrite struts2 dispather, it didn't inspect ckfinder/core/connector
4. When flashupload plugin used, a ! occur in front of upload filename. After disabled flashupload plugin,No response again.
5.When ckfinder installed as war package, it works ok. This question occur only when ckfinder integrating into my ssh2 application.
Thank for your suggestion.
Re: Why can not upload files with no response
This name change is rather strange and the first thing that comes to my mind when I see it is problem with encoding - please check this link maybe it will help -
http://docs.cksource.com/CKFinder_2.x/D ... I_Encoding
Second thing that might help you to isolate the problem is turning on the debugging in CKFinder for Java to see what error it throws -
http://docs.cksource.com/CKFinder_2.x/D ... leshooting
Re: Why can not upload files with no response
Hi j.swiderski,
I have the same problem(i using CKFinderJava-2.4.1)
Ckfinder manager interface was displayed normally and ckfinder installed as war package it works ok
When uploaded file, Not any response occur. No error but all folders are empty.
So in log file, i see:
2015-01-27 16:23:51,018 DEBUG - saveDir=D:\setup\Eclipse\eclipse-jee-indigo-SR2-win32\_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\DictionaryPro
2015-01-27 16:23:51,020 DEBUG - Found item upload
2015-01-27 16:23:51,020 DEBUG - Item is a file upload
2015-01-27 16:23:51,024 DEBUG - Entering nullPropertyValue [target=[com.opensymphony.xwork2.DefaultTextProvider@ac3324], property=struts]
2015-01-27 16:23:51,025 INFO - Removing file upload D:\setup\Eclipse\eclipse-jee-indigo-SR2-win32\_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\DictionaryPro\upload_231e08fe_5fcf_4e3d_9d5a_89f1df8116f0_00000002.tmp
Please help me the my problem.
cannot upload files with no response
I have the same issue can anyone fix it?