Integrate ckeditor+ckfinder, solve upload file path problem _ Web Editor

Source: Internet
Author: User
In these three cases the resulting server. MapPath is consistent, which results in the upload after the image to the database and the actual image store address inconsistent, so we need to customize a path address userdir, so that BaseURL just write the image address of the database, and create a new directory Basedir for another .... So no matter how your site through the way access is OK, the problem of a long time before the solution

The config.asp of ASP is modified as follows:

Dim BaseURL, BaseDir, Userdir

BaseURL = ".. /ckfinder/userfiles/"
Userdir= ". \.. \.. \userfiles "
BaseDir = Server. MapPath (userdir) & "\"
As for the unable to find an image manipulation component error, it is likely that the code that generated the thumbnail has a problem with the. NET framework4.0 version, in addition to the ckfinder/ The Userfiles folder gives everyone Full control, and according to the Qian Yi Network Solution

config.asp thumbnails.add "Enabled", True false !--? Xml:namespace PREFIX = O/-->

asp.net 1.1/2.0 Font face= "Arial" or aspjpet aspimage 2 aspthumb asp.net

o If there is a mistake, According to the instructions, change web.config ckfindertemppath web.config "\" "\" ) ; span>

o http://.../ckfinder/core/connector/asp/loopback.aspx asp.net .net .net Framework 4.0 2.0 The of asp.net Program resolution "403-forbidden" asp.net The

-->

I changed it myself. The path value set must be the same, such as Ckfindertemppath = ": \ Foreign Language Department \web\ckfinder\userfiles", Web.config's value is the same, but my own computer this problem can be very good to solve, and another server still have problems, after depressed due to rush time or obediently replaced by fckeditor2.6.5, this time also involves the path problem, because the default setting is based on the site root directory, simply can not adapt to anywhere Use of the need to spend a lot of effort finally found a solution:

' Store image path is still based on site,

Dim Configuserfilespath
Configuserfilespath = "/web/web1/userfiles/"

But we can change the address of the image written into the database, replace the '/web/web1 ' with ' ... ' so that even the mobile site doesn't have to modify the database's picture path.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.