FCKeditor 2.6.3 on Unix Server all folders have been CHMOD.
I can upload, Images & Flash perfectly fine, they go to the correct folders. All works perfectly.
However for Uploading a document (insert/link) the upload says its successful every time, but it's not. I even double checked the server via FTP. Ive tried, .doc, .pdf, .png, small and larger file sizes.
Have searched high and low for an answer and about to pull my hair out!
config.php
$Config['UserFilesPath'] = 'http://www.xxx.com/media/' ;
$Config['UserFilesAbsolutePath'] = '/www/xxx/xxx/xxxx/media/' ;
$Config['AllowedExtensions']['File'] = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;
$Config['DeniedExtensions']['File'] = array() ;
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . 'file/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
$Config['QuickUploadPath']['File'] = $Config['FileTypesPath']['File'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['FileTypesAbsolutePath']['File'] ;
Any help greatly appreciated.
Fri, 10/03/2008 - 07:03
#1
Re: Insert/Link Quick & Server Upload Issue
Ok update,
Got the Link File Quick Upload to work, but it places the file here http://www.xxx.com/media/ and not in the preferred directory http://www.xxx.com/media/file
As ive seen with all Quick Uploads it places a file here http://www.xxx.com/media/
Is it possible to change the upload directory path for Quickupload?
Second thing to note in Browse Server Window if you notice the url for images and flash the url specifies browser.html?Type=Image but this is not specified for File browser.html?Type=File
Thirdly in editor/dialog/fck_link/fck_link.js this javascript file in dreamweaver the two lines below cause the rest of document code to be all blue, which indicates there might be an error somewhere in the first line. Im not a javascript expert so not sure why its not validating. i.e. is there and extra (') where it shouldn't be?
oRegex.PopupUri = /^javascript:void\(\s*window.open\(\s*'([^']+)'\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*\)\s*$/ ;
// Accessible popups
oRegex.OnClickPopup = /^\s*on[cC]lick="\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*"$/ ;
Re: Insert/Link Quick & Server Upload Issue SOLVED!!!
If your server is running PHP in safe mode and FCK editor creates the Folders for you, for some reason that folder wont be assigned correct permissions.
So.. all you need to do is create the folder yourself in FTP program you are using and CHMOD it appropriately.
Hope this helps you!