mam problem z uploadem zdjec, probowalem najpierw ustawiac upload po swojemu, kiedy to nie skutowalo przeszukalem forum i dalej nic (tzn. do tej pory to wybraniu zdjecia do uploadu i klikniecia "wyslij" nic sie nie dzialo, tylko ta ramka (strona) w ktorej wysylam ten plik się odświeża i nic) , po zmianie ustawień takich jakie proponuje tutaj i juz jest postęp - tzn. pojawia się okienko "You file has been successfully uploaded" przenosi mnie tam gdzie powinno, wstawia do "okienka" zdjęcie, ale zamiast niego są te takie "krzaczki" - pliku nie ma. W folderze gdzie plik powinien byc uploadowany go nie ma ... o co chodzi?
ustawienia:
fckconfig.js
Kod
FCKConfig.LinkBrowser = true;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension;
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7; // 70%
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7; // 70%
FCKConfig.ImageBrowser = true;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php';
FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7; // 70%;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7; // 70%;
FCKConfig.FlashBrowser = true;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension;
FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7; //70%;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7; //70%;
FCKConfig.LinkUpload = true;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage;
FCKConfig.LinkUploadAllowedExtensions = ""; // empty for all
FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$"; // empty for no one
FCKConfig.ImageUpload = true;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Image';
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$"; // empty for all
FCKConfig.ImageUploadDeniedExtensions = ""; // empty for no one
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension;
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7; // 70%
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7; // 70%
FCKConfig.ImageBrowser = true;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php';
FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7; // 70%;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7; // 70%;
FCKConfig.FlashBrowser = true;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension;
FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7; //70%;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7; //70%;
FCKConfig.LinkUpload = true;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage;
FCKConfig.LinkUploadAllowedExtensions = ""; // empty for all
FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$"; // empty for no one
FCKConfig.ImageUpload = true;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Image';
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$"; // empty for all
FCKConfig.ImageUploadDeniedExtensions = ""; // empty for no one
<?php /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * "Support Open Source software. What about a donation today?" * * File Name: config.php * Configuration file for the File Manager Connector for php. * * File Authors: * Frederico Caldeira Knabben (fredck@fckeditor.net) */ // SECURITY: You must explicitelly enable this "connector". (Set it to "true"). $Config['Enabled'] = true ; // Path to user files relative to the document root. $Config['UserFilesPath'] = 'http://localhost/lemar/temporary/images/' ; // Fill the following value it you prefer to specify the absolute path for the // user files directory. Usefull if you are using a virtual directory, symbolic // link or alias. Examples: 'C:\\MySite\\UserFiles\' or '/root/mysite/UserFiles/'. // Attention: The above 'UserFilesPath' must point to the same directory. $Config['UserFilesAbsolutePath'] = '' ; $Config['DeniedExtensions']['File'] = array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ; $Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ; ?>