{"action":"created","issue":{"url":"https://api.github.com/repos/chrislusf/weed-fs/issues/59","labels_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/59/comments","events_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/59/events","html_url":"https://github.com/chrislusf/weed-fs/issues/59","id":54459648,"number":59,"title":"Reading Multi part error","user":{"login":"devinrsmith","id":6764691,"avatar_url":"https://avatars.githubusercontent.com/u/6764691?v=3","gravatar_id":"","url":"https://api.github.com/users/devinrsmith","html_url":"https://github.com/devinrsmith","followers_url":"https://api.github.com/users/devinrsmith/followers","following_url":"https://api.github.com/users/devinrsmith/following{/other_user}","gists_url":"https://api.github.com/users/devinrsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/devinrsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinrsmith/subscriptions","organizations_url":"https://api.github.com/users/devinrsmith/orgs","repos_url":"https://api.github.com/users/devinrsmith/repos","events_url":"https://api.github.com/users/devinrsmith/events{/privacy}","received_events_url":"https://api.github.com/users/devinrsmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-01-15T15:10:27Z","updated_at":"2015-01-15T18:19:20Z","closed_at":null,"body":"Getting tons of these errors, unable to upload. Any ideas? Restarted the volume and things are working now. \r\n\r\n`I0115 15:02:57 00001 needle.go:65] Reading Multi part [ERROR] EOF`\r\n\r\n(Edit: restarting didn't fix things)"},"comment":{"url":"https://api.github.com/repos/chrislusf/weed-fs/issues/comments/70133809","html_url":"https://github.com/chrislusf/weed-fs/issues/59#issuecomment-70133809","issue_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/59","id":70133809,"user":{"login":"yourchanges","id":492946,"avatar_url":"https://avatars.githubusercontent.com/u/492946?v=3","gravatar_id":"","url":"https://api.github.com/users/yourchanges","html_url":"https://github.com/yourchanges","followers_url":"https://api.github.com/users/yourchanges/followers","following_url":"https://api.github.com/users/yourchanges/following{/other_user}","gists_url":"https://api.github.com/users/yourchanges/gists{/gist_id}","starred_url":"https://api.github.com/users/yourchanges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yourchanges/subscriptions","organizations_url":"https://api.github.com/users/yourchanges/orgs","repos_url":"https://api.github.com/users/yourchanges/repos","events_url":"https://api.github.com/users/yourchanges/events{/privacy}","received_events_url":"https://api.github.com/users/yourchanges/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T18:19:20Z","updated_at":"2015-01-15T18:19:20Z","body":"@chrislusf  the improved code: needle.go L64-L84:\r\n\r\n        part, fe := form.NextPart()\r\n\tfor {\r\n\t\tif fe != nil {\r\n\t\t\tglog.V(0).Infoln(\"Reading Multi part [ERROR]\", fe)\r\n\t\t\te = fe\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tif part.FileName() != \"\" {\r\n\t\t\tbreak //found the first <file type> multi-part\r\n\t\t}\r\n\r\n\t\tpart2, fe := form.NextPart()\r\n\r\n\t\t//no more multi-part items, we take the last multi-part item as the target\r\n\t\tif fe == io.EOF {\r\n\t\t\tbreak\r\n\t\t} else {\r\n\t\t\tpart = part2\r\n\t\t}\r\n\t}"}}