Ueditor Editor ASP version cannot upload picture resolution 500 error

Source: Internet
Author: User

First, go to IIS, open the ASP Settings page, send the error message to the browser, to help find the problem.


Use Baidu Open source Ueditor editor cannot upload picture and report Server 500 error

First look is the uploader.class fs. CreateFolder (PATH) This statement cannot create a directory, doubt the permissions issue, after providing all permissions, still not.

Finally refer to the official Baidu document the code inside the function

    Private Function Checkorcreatepath (ByVal path)
        Set fs = Server.CreateObject ("Scripting.FileSystemObject")
        Dim parts
        parts = Split (path, "\")
        Path = "For each part,
        parts
            Path = path + part +" \ "
            If fs.f Olderexists (path) = False Then
                fs. CreateFolder (path) end
            If
        Next
    Function

Amended to

Private Function Checkorcreatepath (ByVal path)
        Set fs = Server.CreateObject ("Scripting.FileSystemObject")
        Dim Parts
        Dim Root:root = Server.MapPath ("/") & "\"
        parts = Split (Replace (path, Root, ""), "\")
        Path = root for each part
        , parts
            Path = path + part + "\"
            If fs. FolderExists (path) = False Then
                fs. CreateFolder (path) end
            If
        Next
Function




can be uploaded normally.

Related Article

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.