6669df3d3611d3f2c2a944d0a67c2668c8257bdf — Dakota Walsh 1 year, 11 months ago 6f25200
pass base name instead of full path when storing file

This closes issue #2
Previously the full path was passed when uploading a file over ftp,
which on several ftp servers, caused the file to be rejeced. This patch
causes the file to use the base name instead.
1 files changed, 1 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +1 -1
@@ 93,7 93,7 @@ func main() {
			defer f.Close()

			// upload the file
			put(f, arg, u)
			put(f, filepath.Base(arg), u)
			// calculate the hash
			h := hash(f)
			// print the url