aboutsummaryrefslogtreecommitdiffstats
path: root/cli/cli.go
diff options
context:
space:
mode:
authorCarlos Garay2015-02-26 01:10:04 -0500
committerCarlos Garay2015-02-26 01:10:04 -0500
commitb22179bb3c791d870a95b0106df7cc49a8e3b92c (patch)
tree3548c35241e082d1679a5615908b7fb33c9faec6 /cli/cli.go
parent997b226db233936fab34ea082453d3bf9433dec5 (diff)
downloadgdrive-b22179bb3c791d870a95b0106df7cc49a8e3b92c.tar.bz2
fixed bug that named all stdin uploads "untitled"
Diffstat (limited to 'cli/cli.go')
-rw-r--r--cli/cli.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/cli.go b/cli/cli.go
index adc50d7..b931733 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -169,7 +169,7 @@ func makeFolder(d *gdrive.Drive, title string, parentId string, share bool) (*dr
// Upload file to drive
func UploadStdin(d *gdrive.Drive, input io.ReadCloser, title string, parentId string, share bool, mimeType string, convert bool) error {
// File instance
- f := &drive.File{Title: "untitled"}
+ f := &drive.File{Title: title}
// Set parent (if provided)
if parentId != "" {
p := &drive.ParentReference{Id: parentId}