mjpclab / go-http-file-server

Simple command line based HTTP file server to share local file system
MIT License
370 stars 56 forks source link

可以用http代码上传文件吗? #46

Open 107295472 opened 1 week ago

107295472 commented 1 week ago

只能命令行上传啊,我想用前端js上传文件

107295472 commented 1 week ago

可以自动创建目录吗,根据时间日期

marjune163 commented 6 days ago

只能命令行上传啊,我想用前端js上传文件

可以的,用POST提交,详见API文档: https://github.com/mjpclab/go-http-file-server/blob/main/doc/zh-CN/api.md#%E5%9C%A8%E6%8C%87%E5%AE%9A%E8%B7%AF%E5%BE%84%E4%B8%8B%E5%88%9B%E5%BB%BA%E7%9B%AE%E5%BD%95

107295472 commented 2 days ago

image base auth不通过,用这个命令启动的ghfs -l 8080 -r files --auth files --user user1:pass1 -L -

107295472 commented 2 days ago

image

marjune163 commented 2 days ago