Hi all.
I get "Invalid file type" after uploading swf.
Can't understand why.
in the
/fckeditor/editor/filemanager/conectors/config.php
folowing part is in tuch with flash:
All ok, as you may see.
But i can't upload flash with FCKeditor flash upload plugin.
With uploading images all great.
Where problem may be?
Help please.
I get "Invalid file type" after uploading swf.
Can't understand why.
in the
/fckeditor/editor/filemanager/conectors/config.php
folowing part is in tuch with flash:
$Config['AllowedExtensions']['Flash'] = array('swf','flv') ; $Config['DeniedExtensions']['Flash'] = array() ; $Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ; $Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ; $Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] ; $Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;
All ok, as you may see.
But i can't upload flash with FCKeditor flash upload plugin.
With uploading images all great.
Where problem may be?
Help please.
Re: I get Invalid file type while uploading swf
thanks
PS: according to what I have read it could be that it is some kind of limitation on the upload file size but I am not sure and I do not know how to fix it
Re: I get Invalid file type while uploading swf
the php.ini file had a limit to 8M of file site to upload I changed it to 16M and now I can upload my files.
I am not sure this is the best solution but it did work for me.
Re: I get Invalid file type while uploading swf
Not in my case...
I can't upload 50kb swf, but freely upload 2Mb png...
Any suggestions?
Re: I get Invalid file type while uploading swf
I could only upload files that were in the $Config['AllowedExtensions']['File'] array - not any of the subsequent Image, Flash or Media arrays.
Infact, after checking again, it appeared that the $_GET['Type'] value was not being passed whatsover and so it was defaulting to "File" as set in this line
Solution... change the above line to the code below... which parses each "AllowedExtension" array to compare the file type against the file being uploaded and take the $sType value directly from the associated array which matches. Works fine for me and uploads everything.
Other changes I made were to overcome the CASE problem. The editor tries to upload to title case folders "Image", "File" etc, not "image", "file"... which is a pain for apache. I added stttolower() function on the code creating the filepath before upload, and the code which returns the filepath back to javascript to appear embedded into the page....
near top of file....
Near bottom of file...
Hope this helps someone!!