Hello,
I'm getting an error when I upload a text file: "Invalid resource type specified"
However, when I upload an image file, it works ok.
my fckeditor.properties is as follow:
It seems that the "file" resource type is not being handled well somehow. I'm not sure if this a problem of "fckeditor" or "fckeditor java".
Any clue where to look for?
Regards,
Bo
I'm getting an error when I upload a text file: "Invalid resource type specified"
However, when I upload an image file, it works ok.
my fckeditor.properties is as follow:
connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl connector.userFilesAbsolutePath=c:/temp connector.impl=net.fckeditor.connector.impl.LocalConnector connector.userFilesPath=userfiles connector.userPathBuilderImpl=net.fckeditor.requestcycle.impl.ServerRootPathBuilder
It seems that the "file" resource type is not being handled well somehow. I'm not sure if this a problem of "fckeditor" or "fckeditor java".
Any clue where to look for?
Regards,
Bo
Re: Error fckeditor java 2.5 while uploading a file
I've tracked down the error, it only occurs with the QuickUpload function for files, apparently the Type parameter is not sent with it. In the case of the upload function on the "Browse the server" window there's no problem.
I guess this is an issue to be attended at the client side fckeditor project.
Can anybody confirm this issue?
Regards,
Bo
Re: Error fckeditor java 2.5 while uploading a file
Re: Error fckeditor java 2.5 while uploading a file
What is the extension of the file? This might be the problem. I would double-check it here.
Re: Error fckeditor java 2.5 while uploading a file
Hi, I looked into the docs, and found this:
(http://docs.fckeditor.net/CKFinder/Serv ... uickUpload)
It seems the call should include the type parameter.
When you say it's not an issue, do you mean you can't reproduce it?
When I debug the server side connector and use the "link/browse server" option, and then use the upload function (at the bottom of the dialog box), I see that request.getParameter ("Type") (in net.fckeditor.requestcycle.Context) returns "File".
However, when I use the upload function dirtectly ("Link/upload tab), the parameter "Type" isn't available anymore.
If other connectors do work, I guess they take the file type as a default?
I tried this with different file extentions, txt, doc, all the same result. The error message seems to belong to "type" parameter (which is not present), not to the extention type.
Can anybody reproduce this? (I guess it is only reproducable when you use the java connector. I'm not sure if this would fail for the 2.4 connector, I'm using version 2.5)
Cheers, Bo
Re: Error fckeditor java 2.5 while uploading a file
Hi Bo,
I did not mean that. You are citing the wrong source. There is no Java support for the CKFinder, only for the FCKeditor. The correct but incomplete source says:
and the old source says:
.
The QuickUpload omits the CurrentFolder and ResourceType parameters and implies the default values.
Yes, your assumption is correct.
I have just tested it. It is a bug. Sorry, I will fix it today or on the weekend.
Thanks for your support in testing trunk software.
Re: Error fckeditor java 2.5 while uploading a file
I have created a ticket for http://dev.fckeditor.net/ticket/2761
thanks again.
Re: Error fckeditor java 2.5 while uploading a file
Update to Changeset 2862. Works as desired now.