GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — hsweb-framework/hsweb-system/hsweb-system-file at master · HelloJavaWorld123/hsweb-framework

Expand file tree

/

hsweb-system-file

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

hsweb-system-file

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
hsweb-system-file-controller
hsweb-system-file-controller
 
 
hsweb-system-file-dao
hsweb-system-file-dao
 
 
hsweb-system-file-entity
hsweb-system-file-entity
 
 
hsweb-system-file-service
hsweb-system-file-service
 
 
hsweb-system-file-starter
hsweb-system-file-starter
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

文件管理

统一文件管理。提供上传,下载,秒传等API

API

上传单个文件:

    POST: /file/upload
    Content-Disposition: form-data; name="file"; filename="test.zip"

返回:

    {
       "result":{"id":"文件id","md5":"文件md5值","name":"test.zip"},
       "status":200
    }

上传多个文件:

    POST: /file/upload-multi
    Content-Disposition: form-data; name="files"; filename="test.zip"
    Content-Disposition: form-data; name="files"; filename="test2.zip"

返回:

    {
       "result":[
           {"id":"文件id","md5":"文件md5值","name":"test.zip"},
           {"id":"文件id","md5":"文件md5值","name":"test2.zip"}
       ],"status":200
    }

上传静态文件:

    POST: /file/upload-static
    Content-Disposition: form-data; name="file"; filename="test.zip"

返回:

    {
      "result":"文件的访问路径",
      "status":200
    }

下载文件

    GET: /file/download/{idOrMd5}
    GET: /file/download/{idOrMd5}/{fileName}

根据md5获取文件信息

    GET: /file/md5/{md5}

如果文件存在则返回:

    {
      "result":{
        "id":"文件id",
        "name":"文件名",
        "md5":"md5值"
        .....
      },
      "status":200
    }

否则返回:

    {
      "status":404,
      "message":"...."
    }
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.