HttpServerOnAndroid icon indicating copy to clipboard operation
HttpServerOnAndroid copied to clipboard

无需自定义MIME

Open sonichy opened this issue 4 years ago • 0 comments

MIME未自定义就不能直接打开,而是下载(例如:你就没有定义视频),那么多MIME你也定义不过来,其实有现成的API: String mime = URLConnection.getFileNameMap().getContentTypeFor(file.getCanonicalPath()); https://github.com/gpfduoduo/HttpServerOnAndroid/blob/master/app/src/main/java/com/guo/duoduo/httpserver/http/FileBrowseHandler.java#L129

sonichy avatar Mar 02 '20 05:03 sonichy