Hi, I am a new guy with fckeditor(java version).
I want to use configurable upload file path ,such as "/mnt/uploadfiles or E:/uploadfiles" instead of the
default relative directry "/userfiles", how should I do ?
some detail description as belows:
I attempted to change the servlet(ConnectorServlet.java) source code, using my own absolute file path
instead of "getServletContext().getRealPath(typeDirPath)" ; and it uploaded the file successfully! but when
the upload window closed, the main page(div) can't show the image correctly. Because it always use the
relative file path , such as"/fckeditor/userfiles/image/test.jpg" , but in fact its path is somewhere else,
such as "E:/uploadfiles/fckeditor/userfiles/image/test.jpg".
Please give me some help.
Thanks!
I want to use configurable upload file path ,such as "/mnt/uploadfiles or E:/uploadfiles" instead of the
default relative directry "/userfiles", how should I do ?
some detail description as belows:
I attempted to change the servlet(ConnectorServlet.java) source code, using my own absolute file path
instead of "getServletContext().getRealPath(typeDirPath)" ; and it uploaded the file successfully! but when
the upload window closed, the main page(div) can't show the image correctly. Because it always use the
relative file path , such as"/fckeditor/userfiles/image/test.jpg" , but in fact its path is somewhere else,
such as "E:/uploadfiles/fckeditor/userfiles/image/test.jpg".
Please give me some help.
Thanks!
Re: How to use absolute upload file path in fckeditor
Did you read the cofig documentation already? I guess you didn't! Catch it up!
Re: How to use absolute upload file path in fckeditor
What I expect is that we can upload the files to somewhere out of the web application scope( e.g.
store the uploaded files to another file store server in the local network), and use a jsp or a
servlet to read data from input stream instead of the default browser html.
Because there is so many complex javascript in fckeditor, I am very confused with it.
It 's really required in most application(typically a forum application). Users uploads images and attachements day
by day, and the webcontext/userfiles/ directory contains so much files, it 's so hard to maintain from then on.
When our web application is deployed in a cluster environment, we can't store the uploaded files in each web instance; we
have to store the uploaded files to a global directory(e.g. a directory in a file store server), so that all the web instance
could share the uploaded resource.
Could someboday give me any suggestions?
Many thanks!
Re: How to use absolute upload file path in fckeditor
Great, you realized that the currect library has a functional limitation to the current web context only. It does not suite a lot of situations. Therefore version 2.5 is in the make. It is virtually done, may do:
Re: How to use absolute upload file path in fckeditor
"LocalFileSystemConnector" is really a good thing. May be many people are looking for it.
Looking forward to your release version2.5.
Thanks your continuing contribution.
Re: How to use absolute upload file path in fckeditor