Code Monkey home page Code Monkey logo

Comments (3)

Rader avatar Rader commented on May 20, 2024 3

csghub-server服务端接口支持中文文件夹路径,前端页面请求的时候需要对path的参数内容进行url编码 @hiveer @zhendi

http://localhost:8080/api/v1/datasets/taylor/dataset/tree?path=%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%A4%B9
http://localhost:8080/api/v1/datasets/taylor/dataset/tree?path=中文文件夹

会返回正确的内容

{
    "msg": "OK",
    "data": [
        {
            "name": "wechat_group.jpg",
            "type": "file",
            "lfs": false,
            "size": 119015,
            "commit": {
                "id": "526df2f000a994149d09dc3bfa9d94fafde6b697",
                "committer_name": "",
                "committer_email": "",
                "committer_date": "2024-01-18 02:39:29 +0000 UTC",
                "created_at": "",
                "message": "Upload files to \"中文文件夹\"\n",
                "author_name": "",
                "author_email": "",
                "authored_date": ""
            },
            "path": "中文文件夹/wechat_group.jpg",
            "mode": "100644",
            "sha": "526df2f000a994149d09dc3bfa9d94fafde6b697",
            "url": "http://localhost:3001/datasets_taylor/dataset/raw/branch/main/%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%A4%B9%2Fwechat_group.jpg",
            "download_url": "http://localhost:3001/datasets_taylor/dataset/raw/branch/main/%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%A4%B9%2Fwechat_group.jpg",
            "content": "",
            "lfs_relative_path": ""
        }
    ]
}

from csghub.

zhendi avatar zhendi commented on May 20, 2024 2

修复已合并到 main 分支,可以拉取最新代码更新修复此问题。如果使用的是 all-in-one 镜像,更新会有滞后,请等待镜像更新后再试,或者去 SaaS 版体验:https://portal.opencsg.com/

from csghub.

wayneliu0019 avatar wayneliu0019 commented on May 20, 2024 1

镜像已更新,最新portal镜像修复改问题。

from csghub.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.