witam,
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


  1. <?php 
  2. /*
  3.  * FCKeditor - The text editor for internet
  4.  * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  5.  * 
  6.  * Licensed under the terms of the GNU Lesser General Public License:
  7.  *  http://www.opensource.org/licenses/lgpl-license.php
  8.  * 
  9.  * For further information visit:
  10.  *  http://www.fckeditor.net/
  11.  * 
  12.  * "Support Open Source software. What about a donation today?"
  13.  * 
  14.  * File Name: config.php
  15.  *  Configuration file for the File Manager Connector for php.
  16.  * 
  17.  * File Authors:
  18.  *  Frederico Caldeira Knabben (fredck@fckeditor.net)
  19.  */
  20.  
  21. global $Config ;
  22.  
  23. // SECURITY: You must explicitelly enable this "connector". (Set it to "true").
  24. $Config['Enabled'] = true ;
  25.  
  26. // Path to user files relative to the document root.
  27. $Config['UserFilesPath'] = 'http://localhost/lemar/temporary/images/' ;
  28.  
  29. // Fill the following value it you prefer to specify the absolute path for the
  30. // user files directory. Usefull if you are using a virtual directory, symbolic
  31. // link or alias. Examples: 'C:\\MySite\\UserFiles\' or '/root/mysite/UserFiles/'.
  32. // Attention: The above 'UserFilesPath' must point to the same directory.
  33. $Config['UserFilesAbsolutePath'] = '' ;
  34.  
  35. $Config['AllowedExtensions']['File'] = array() ;
  36. $Config['DeniedExtensions']['File'] = array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;
  37.  
  38. $Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
  39. $Config['DeniedExtensions']['Image'] = array() ;
  40.  
  41. $Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
  42. $Config['DeniedExtensions']['Flash'] = array() ;
  43.  
  44. $Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
  45. $Config['DeniedExtensions']['Media'] = array() ;
  46.  
  47. ?>