I successfully uploaded an image, but cannot see it in the file browser
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 6.x-1.1 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hello,
I recently installed FCKeditor in a new installation of drupal 6.
I followed the instructions on how to get the file management (with uploads and server browse settings), and it is showing the "browse" button now, when clicking on the image icon. I want to add an image to a node.
The problem is that, even though uploading works correctly, when I click on the "BROWSE" button, which should direct me to the sites/all/files directory, I get a my browser telling me "page not found".
I am uncertain of why this is happening, now that when uploading the images, I can see they are effectively in the files directory. The problem comes up when "listing" the files directory, after clicking on the browse button, on the "image info" tab, of the "insert/add" image icon.
Thank you for your kind support on this issue.
Appreciate it.

#1
Hello,
Well, it's probably one of the less intuitive things in FCKeditor.
When you upload image directly through the image dialog box, "QuickUpload" command is executed.
The problem is that by default, "QuickUpload" command uploads files to "root directory" of file browser, "sites/all/files" in your case.
However, when you click "browse server" button, all resource types: "Image", "Files", "Flash" point to subdirectories, that's why you're not able to see uploaded files in the root directory.
The solution is to edit editor/filemanager/connectors/php/config.php, scroll down to the bottom and find:
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
change it to something similar to:
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'];
$Config['QuickUploadAbsolutePath']['Image']= $Config['FileTypesAbsolutePath']['Image'];
(apply the same change to each resource type, I've changed the last two lines)
The idea is that FileTypesPath and QuickUploadPath should point to the same path (same rule applies to FileTypesAbsolutePath and QuickUploadAbsolutePath).
Note that now "QuickUploadPath" points to the subdirectory, so you'll be able to see only newly uploaded files.
Of course you can change FileTypesPath (QuickUploadPath and so on) of each resource type so that it pointed to the "root directory" ($Config['UserFilesPath']), but this way all files will be uploaded to the same directory.
#2
Hello,
Still playing with FCKeditor in a newly installe Drupal 6 site.
A little problem arose:
I have disabled (as recomended) the "br" and "br /" tags in the filtered html input option in Drupal, as recommended in the Readme file. Now, I think I can have a little more control of the page breaks, I do feel that. However, I can't figure out the way to simple disable pagebreak in a page or a story. I have a long article, for which I don't want the "read more" link to automatically be created. I assume there must be a way, but, in spite of trying to find it, I haven't been successful.
Thank you for your support
Libardo
#3
I think I already figured it out myself. It doesn't have to do with any of the features of fck module. It rather has to do with the "post" settings of drupal under "content management". Changing the "lenght of trimmed posts" to the desired value will do.
#4
#5
@thebrotherofasis please create a new topic to ask questions that have nothing to do with image uploading.
#6
Would be probably better to change it like this.
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
becomes
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['QuickUploadAbsolutePath']['Image']== ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
Normal and quick upload are the same now.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.