Giter Site home page Giter Site logo

scanfing / httpfileserver Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 4.0 687 KB

http文件服务器 可用于局域网内目录浏览和文件下载、上传。-- http server for browse directory and download / upload files

License: Other

C# 76.77% HTML 23.23%
file http tool

httpfileserver's People

Contributors

scanfing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

httpfileserver's Issues

ie加载上传插件时会提示错误。

网页错误详细信息

用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)
时间戳: Wed, 7 Jun 2023 09:29:37 UTC

消息: 缺少 ';'
行: 1167
字符: 9
代码: 0
URI: http://192.168.198.112/

查看源代码1167对应的是:
let uploadServer = './'
let mainBody = document.querySelector('body')
let files = []

加上; 后执行仍不能成功。我用的ie是ie 8.0.7601

断点续传有点问题

// 文件
https://github.com/scanfing/HttpFileServer/blob/main/src/HttpFileServer/Handlers/HttpGetHandler.cs

///


/// 断点续传响应支持
///

///
protected async Task ResponseContentPartial(string path, HttpListenerRequest request, HttpListenerResponse response, bool onlyHead = false)
{
...
response.AddHeader("Content-Range", $"bytes {range.Item1}-{range.Item2}/{stream.Length}");

var buff = new byte[81920];
var rangeEnd = range.Item2 > range.Item1 ? range.Item2 : stream.Length - 1;
// 此处应该为
// var bytesNeeds = rangeEnd + 1 - range.Item1;
var bytesNeeds = rangeEnd - range.Item1;
...

}

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.