only upload media if there is one
This commit is contained in:
parent
16683c7dc3
commit
66a1e15a82
|
@ -168,7 +168,7 @@ module Google
|
||||||
|
|
||||||
# Resumamble slightly different than other upload protocols in that it requires at least
|
# Resumamble slightly different than other upload protocols in that it requires at least
|
||||||
# 2 requests.
|
# 2 requests.
|
||||||
if result.status == 200 && self.upload_type == 'resumable'
|
if result.status == 200 && self.upload_type == 'resumable' && self.media
|
||||||
upload = result.resumable_upload
|
upload = result.resumable_upload
|
||||||
unless upload.complete?
|
unless upload.complete?
|
||||||
logger.debug { "#{self.class} Sending upload body" }
|
logger.debug { "#{self.class} Sending upload body" }
|
||||||
|
|
Loading…
Reference in New Issue