Giter VIP home page Giter VIP logo

godw's Introduction


Godw

GoDoc

网络文件管理

通过一个简单的页面,来将重要的文件存储到云端 ...
通过一个简单的页面,来方便讲云端文件下载本地 ...

[PATH]

[godw]     主程序
[files]    存储目录
[template] 模版文件

注意:主程序需要在[PATH]目录下执行,因为程序内部使用的相对目录,当然,你也可以修改为绝对目录

因为偷懒,所以并没有讲目录文件信息记录到数据库或者记录文件内,而是每次遍历,非常浪费资源

如果程序在环境并发很高的话,建议修改记录到数据库等

[UPDATE]

增加权限管理 [session]

普通用户: 查看,下载,无法删除操作

管理员: 添加,查看,下载,删除,均可

[ 管理员 OR 普通用户 ]

http://127.0.0.1:8080
http://127.0.0.1:8080/?admin [这里的admin在godw.conf中设置]

[ Linux Bash 上传 ]

curl -F "[email protected];filename=a.jpg"  http:/xxx.xxx.com:8080/upload   [重名文件-Rename.1-N]
curl -F "[email protected];filename=a.jpg"  http:/xxx.xxx.com:8080/upload/f [重名文件-强制覆盖]

image

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.