linxgnu / goseaweedfs Goto Github PK
View Code? Open in Web Editor NEWA complete Golang client for SeaweedFS
Home Page: https://github.com/chrislusf/seaweedfs
License: Apache License 2.0
A complete Golang client for SeaweedFS
Home Page: https://github.com/chrislusf/seaweedfs
License: Apache License 2.0
/usr/lib/golang/bin/go tool test2json -t /tmp/GoLand/___9TestUploadLookupserverReplaceDeleteFile_in_seaweed_test_go.test -test.v -test.paniconexit0 -test.run ^\QTestUploadLookupserverReplaceDeleteFile\E$
=== RUN TestUploadLookupserverReplaceDeleteFile
seaweed_test.go:54:
Error Trace: seaweed_test.go:54
Error: Expected nil, but got: &errors.errorString{s:"/dir/assign result JSON unmarshal error:invalid character '<' looking for beginning of value, json:\nNoSuchKey
The specified key does not exist./dir/assign1655828029404165416assigndir"}
Test: TestUploadLookupserverReplaceDeleteFile
--- FAIL: TestUploadLookupserverReplaceDeleteFile (0.52s)
FAIL
Process finished with the exit code 1
Getting above error. Can someone help for this?
http(s)://host:port/1,01c49454679ed7?width=200&height=200
Download method don't build args to fileURL.
after UploadFile(filepath, "", "") I get one fid and use this fid in LookupFileID,I can't get the picture through the fullUrl
if use seaweed direct can upload file and can lookup the picture can get picture by browser as well,
but still can't get picture through fid goseaweedfs client created
version v0.1.3
seaweed version 1.45
It seem error happen at line 151 resp, err = c.client.Post(url, mw.FormDataContentType(), r)
http://172.16.1.135:9333/4,0a8d1aa4d3?Content-Type=multipart%2Fform-data&ts=1540190469
&{404 Not Found 404 HTTP/1.1 1 1 map[Content-Length:[0] Date:[Tue, 26 Nov 2019 08:05:50 GMT]] 0xc000126380 0 [] false false map[] 0xc00022a900 }
curl http://172.16.1.135:9333/dir/assign
curl -F file=@./qe.jpg http://172.16.1.131:8084/1,11899cc110
use http://172.16.1.131:8084/1,11899cc110 by browser is well
application/x-gzip; charset=utf-8
or application/gzip; charset=utf-8
if suffix .tgz
.gz
.gzip
it's working when using the function UploadFile
without ttl, but when i do like this UploadFile(path, "", "5m")
,i can only get the fileid but cannot find the uploaded file
seaweedfs master service log:
my seaweedfs master service using the default repliction 000, and has no filer service
i can upload file using curl
command:
could you give me some examples? Thanks a million
i also have a question。can filer add ttl ?
hi,
recently, I use seaweedfs and find some seaweedfs-client.
I prepare to use your seaweedfs-client ,but it does not have a function that can download the file from weedfs, I only find some lookup function to lookup volumeID , url .
Could you please add a DownloadFile function into your client library?
Thanks!
Line 114 in dc71701
seaweedfs support filename which contain utf-8 character.
Maybe should remove normalizeName
function ?
h.Set("Content-Disposition", fmt.Sprintf(
form-data; name="file"; filename="%s", filename))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.