Giter Site home page Giter Site logo

fastdfsapp's Introduction

#FastDFSApp

[TOC]

##配置文件:(resources目录下)

config.json

{
  "ip":"47.98.55.122",//文件服务器域名或IP
  "port":8888 //文件服务器端口
}

fdfs_client.conf

connect_timeout = 2
network_timeout = 30
charset = UTF-8
tracker_server = 47.98.55.122:22122 //配置FastDFS跟踪服务器

接口使用说明

文件上传

  • 请求URL

/file/upload

  • 请求方式

POST(文件表单)

  • 请求参数
参数名称 参数类型 参数说明
file File 可上传多个文件
  • 返回示例
{"status":0,"data":["http://106.38.75.114:8083/group1/M00/00/34/wKgBeFmQi36AQt0VADEzdLuXaCQ748.pdf"]}

文件上传

  • 请求URL

/file/upload_by_url

  • 请求方式

POST(form表单) 或 AJAX

  • 请求参数
参数名称 参数类型 参数说明
fileUrl String 文件url
fileType String 文件类型
  • 返回示例
{"status":0,"data":"http://106.38.75.114:8083/group1/M00/00/34/wKgBeFmQi36AQt0VADEzdLuXaCQ748.pdf"}

文件删除

  • 请求URL

/file/delete

  • 请求方式

POST(form表单) 或 AJAX

  • 请求参数
参数名称 参数类型 参数说明 备注
fileId String 文件ID 示例:http://106.38.75.114:8083/group1/M00/00/00/wKgB3FmN3-2AGRYJAAYt9cJlT_U201.pdf上传红色字体部分
  • 返回示例
{"status":0}

fastdfsapp's People

Watchers

James Cloos avatar

Forkers

zhangdong86

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.