Merge pull request #178 from simplysoft/master
only upload media if there is one
This commit is contained in:
commit
95823b0e19
|
@ -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