Git Product home page Git Product logo

goseaweedfs's People

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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goseaweedfs's Issues

Getting error on running test function TestUploadLookupserverReplaceDeleteFile

/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:\nNoSuchKeyThe 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?

I can't get picture uploaded by use LookupFileID func

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

need help about UploadFile with ttl

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:
image
my seaweedfs master service using the default repliction 000, and has no filer service

i can upload file using curl command:
image

could you give me some examples? Thanks a million

Function name inconsistency

Hi.
I found inconsistency(typo?) named functions in Filer client. ("Upload" and "UploadFile")

func (f *Filer) Upload(localFilePath, newPath, collection, ttl string) (result *FilerUploadResult, err error) {

func (f *Filer) UploadFile(content io.Reader, fileSize int64, newPath, collection, ttl string) (result *FilerUploadResult, err error) {

func (c *Seaweed) Upload(fileReader io.Reader, fileName string, size int64, collection, ttl string) (fp *FilePart, err error) {

func (c *Seaweed) UploadFile(filePath string, collection, ttl string) (cm *ChunkManifest, fp *FilePart, err error) {

I hope these will be fixed!

no DownloadFile funtion

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!

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.