If you enjoy jsmallsoftware products, please consider supporting development through PayPal:
| F.A.Q. (jsmallfib) |
|
1. Does jsmallfib have a file size limit when uploading? How can I increase the limit? Three PHP configuration parameters do influence the maximum file size for uploads. These are memory_limit, post_max_size, and upload_max_filesize. A small php file will allow you to test your configuration with respect to these settings. Please download and unzip limits.zip onto any folder within your web root and call it from your browser. It would be something like: [your-url]/limits.phpThis will display on your browser something like: The setting of PHP configuration parameter 'memory_limit' is [128M] The setting of PHP configuration parameter 'post_max_size' is [8M] The setting of PHP configuration parameter 'upload_max_filesize' is [8M] Of course the actual values you'll see might be different. The important thing is that 'memory_limit' is greater than 'post_max_size' and the latter is greater than 'upload_max_filesize', which in turn should be greater that the actual maximum file size you want to upload on your site! So, if you have access to the 'php.ini' file, you can try to change all of the three parameters there. Otherwise, another way to achieve the same thing is to add the following two lines in file .htaccess in your main web root folder: php_value upload_max_filesize 20M php_value post_max_size 20M where '20M' can of course be changed to whatever you prefer, provided this is less than 'memory_limit' you saw with my little script. Normally this last value is large enough not to be changed, otherwise you could include a further line in the .htaccess file (or directly change the relevant parameter in php.ini). Unfortunately these parameters cannot be changed from within an application (so jsmallfib cannot do this for you on its own). A future version of jsmallfib might avoid html upload limitations by using ftp, for example, to upload files. 2. jsmallfib displays the repository correctly by I cannot navigate in it. Clicking on any folder will not do anything This problem used to happen to jsmallfib versions prior to 1.0.28 for users having PHP setting 'magic_quotes_gpc' enabled, but might still happen on later versions depenging on specific server configuration. The file quotes.zip helps detect this settings. Please download and unzip this file and put it in the main web root, then call it from the browser (it should be [your-url]/quotes.php). If the first parameter is 1 then magic_quotes_gpc is ON. To sort it out, if you don't have access to PHP parameters directly (through file php.ini, which would be the best option), you can create a file .htaccess in the main web root with the following content: SetEnv MAGIC_QUOTES 0 SetEnv PHP_VER 5 If the .htaccess is there already you just need to add thoese two lines and all should work. 3. I have installed and enabled jsmallfib, created an article with the right command, but all I get is a line saying [This line is replaced by a file repository when the article is viewed] You are getting the message [This line is replaced ... ] because you are viewing the article in a list of articles (such as when viewing in blog mode in a joomla page). To display the repository, each article needs to be viewed directly, for example by clicking on its title when viewing articles in a list (you may have to enable clickable titles in the article parameter configuration). So when a single article is viewed jsmallfib will display the repository. 4. jsmallfib does not properly display special characters, such as accented letters, in file names. What can I do about that? From version 1.0.32 jsmallfib has a backend parameter named 'Encode to UTF-8'. The default value is 'Yes'; however, if strange characters appear in your file names in place of special characters such as accented letters, it is possible to disable this setting to solve this display problem. 5. jsmallfib works fine, but when I try to view a folder that contains a large number of files (this could be 60 or 70 files) the page goes blank and nothing comes up. What is happening here? This bug has now been fixed in release 1.0.35, issued on Jan. 05, 2010. Please upgrade to this version if you are experiencing this problem. 6. jsmallfib does not recognise the starting folder (or does something strange not described in the above questions). What can I do about that? It might happen that the actual jsmallfib command gets messed up with html tags put there by your editor. It is therefore worthwhile to check if this is the case. To this end, open the article containing the jsmallfib code and click (if you use the standard MCE editor) on the 'HTML' button on the second line of the icons. Then look at the actual code, and if you see html tags (the appear in the form of ) INSIDE the {jsmallfib ...} command, please remove them. In fact, remove anything that you don't expect to see inside such command, then update the edited article and save it. This should fix the issue. |
F.A.Q.