Is there a walk through anywhere on how to set the file manager to upload pictures and browse the server images? I am unable to get it going.. Other then that everything works great.
Fri, 01/20/2006 - 17:55
#1
RE: Uploading Images
Is it working with the examples attached?
Johnny
RE: Uploading Images
Thanks!!
RE: Uploading Images
I'm using Apache/PHP and can't get the uploading to work.
- I've run the upload.php-patch
- Set:
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
- Created the folders in /UserFiles/ and chmod them to 777.
- Enabled the upload and the connetcor in both config.php files.
- Set:
$Config['UserFilesPath'] = '/UserFiles/' ;
$Config['UserFilesAbsolutePath'] = '/var/www/myDomain/UserFiles/' ;
I get a very strange error in my log file:
PHP Warning: move_uploaded_file(/var/www/myDomain/UserFiles/Image/test.jpg) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied in /var/www/myDomain/FCKeditor/editor/filemanager/upload/php/upload.php on line 84, referer: http://myDomain/FCKeditor/editor/dialog/fck_image.html
PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/var/www/tmp/php3VVU9H' to '/var/www/myDomain/UserFiles/Image/test.jpg' in /var/www/myDomain/FCKeditor/editor/filemanager/upload/php/upload.php on line 84, referer: http://myDomain/FCKeditor/editor/dialog/fck_image.html
File does not exist: /var/www/myDomain/UserFiles/Image/test.jpg, referer: http://myDomain/FCKeditor/editor/dialog ... eview.html
Any ideas?
RE: Uploading Images
Hie,
I have been struggling for the last 2 days to have the "upload process" going on PHP/Apache.
So I dived into the code without drowning... and I found the solution.
First don't forget to change 2 lines of the fckconfig.js in order to have PHP working:
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
Then everything is the "config.php" files (folder: FCKeditor/editor/filemanager/browser/default/connectors/php as regards the browsing of the server and folder: FCKeditor/editor/filemanager/upload/php/ as regards the upload process).
You must set the $Config['UserFilesPath'] variable in a relative manner down from the root of the server (/yourfolder/)
and the $Config['UserFilesAbsolutePath'] in an absolute manner down from the root of your PC (C:/www/yourfolder/ for example with windows server or /etc/httpd/yourfolder/ for example with linux server).
And everything works fine, both browsing and uploading processes.
Hope this helps
Dom
RE: Uploading Images
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
I have did a find for just FileBrowserLanguage and QuickUploadLanguage and still couldn't find any instances in any code for fckeditor.. Maybe this is my problem, but I don't know where that code would have went if its supposed to be there.
As far as the config.php for file browsing I have the following set:
$Config['UserFilesPath'] = '/UserFiles/' ;
$Config['UserFilesAbsolutePath'] = '/usr/local/apache/virtual/website.com/htdocs/UserFiles/' ;
Does that look right to you? I don't want to give up on this, but I feel like I have looked everywhere, and there hasn't been too many people offering advice. So thanks for your help!
RE: Uploading Images
you dont have to look for var _FileBrowserLanguage = 'php' ;
but you look for var _FileBrowserLanguage = and change the value from asp to php !
i found it in mine !
RE: Uploading Images
RE: Uploading Images
/UserFiles/Image/
/UserFiles/Flash/
/UserFiles/File/
/UserFiles/Media/
Then chmod 777 these folders for permission to upload...
RE: Uploading Images
When I run the browser.html in the browser/default directory I get a javascript error, Object Required... Anyway, if anyone has anymore ideas that would be great!
RE: File Browser
Ok, after running the Javascript Console in firefox I think I have narrowed the error down.. Firefox reported this:
Error: this.DOMDocument has no properties
Source File: http://website.com/FCKeditor/editor/fil ... /fckxml.js
Line: 101
Line 101 in that file looks like this:
var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument, this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), 9, null);
So does that tell anyone anything? Even with this I am unsure of what the issue is.
RE: Uploading Images
I'm using Apache/PHP and can't get the uploading to work.
- I've run the upload.php-patch
- Set:
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
- Created the folders in /UserFiles/ and chmod them to 777.
- Enabled the upload and the connetcor in both config.php files.
- Set:
$Config['UserFilesPath'] = '/UserFiles/' ;
$Config['UserFilesAbsolutePath'] = '/var/www/myDomain/UserFiles/' ;
I get a very strange error in my log file:
PHP Warning: move_uploaded_file(/var/www/myDomain/UserFiles/Image/test.jpg) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied in /var/www/myDomain/FCKeditor/editor/filemanager/upload/php/upload.php on line 84, referer: http://myDomain/FCKeditor/editor/dialog/fck_image.html
PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/var/www/tmp/php3VVU9H' to '/var/www/myDomain/UserFiles/Image/test.jpg' in /var/www/myDomain/FCKeditor/editor/filemanager/upload/php/upload.php on line 84, referer: http://myDomain/FCKeditor/editor/dialog/fck_image.html
File does not exist: /var/www/myDomain/UserFiles/Image/test.jpg, referer: http://myDomain/FCKeditor/editor/dialog ... eview.html
Any ideas?
RE: Uploading Images
Found the solution to my own problem, if it's help to anyone else...
Disable SELinux, or just the httpd blocking.
RE: Uploading Images