Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# jiggy 11/5/2009 8:46 AM (edited 11/5/2009 9:57 AM)
I have been deploying a cuyahoga based portal which is working perfectly.

The only problem i have is that i can not find a 'file upload' functionality when publishing new Articles.

I can upload an image and i figured there must be a button somewhere in the editor to do the same for a .doc or .pdf file for example, but i can't seem to locate it (or is it simply non existent?)
I can manually put a file in the UserFiles dir, and then link it in a news item, but i need a file upload interface for the Editors to use.

I have been looking to the fck editor and in the config file you can enter the type of files which can be uploaded. But i can't find the actual interface to upload anything else then images :)
I Guessed you might be able to upload via the 'Hyperlink' interface. I can upload files here, but for some reason only gif,jpg,jpeg and png, together with htm and html. It's actually the exact same set of allowed files then when i choose to upload an Image or Flash. I would think those 2 would differ in any case using the allowed extensions for that type. But that is not my main problem, currently i just want to be able to offer an Editor to upload a .doc or .pdf document and link it in his article.

In the config file of the fckeditor it says:
AllowedTypes = new string[] { "File", "Image", "Flash", "Media" };

And the
TypeConfig[ "File" ].AllowedExtensions
has a great number of extensions, including the .doc and .pdf i need.

Am i overlooking something, or do I simply fail to see the part of the interface which provides this?
Possibly i am overlooking another part where i can configure all of this?

Regards
# Constructor 11/5/2009 1:39 PM (edited 11/5/2009 8:15 PM)
Try the 'Insert/Edit Link' (Hyperlink) button. You can upload files to the server and link to them from there.

EDIT: I should have read your post and paid more attention :)

You have already tried that I see. It works fine on my version. Here are they types allowed (for me).

From fckconfig.js (line 288+):
FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=File' ;
FCKConfig.LinkUploadAllowedExtensions	= ".(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)$" ;			// empty for all
FCKConfig.LinkUploadDeniedExtensions	= "" ;	// empty for no one

All works fine for me. Not sure why you coule be having any problems.