diff --git a/lib/storage/file.js b/lib/storage/file.js index 18cdbf3b61f..bb6e3245491 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -1024,7 +1024,7 @@ File.prototype.startResumableUpload_ = function(stream, metadata) { // by caching a slice of the first chunk, then comparing it with the first // byte of incoming data. if (bytesWritten === 0) { - var cachedFirstChunk = configStore.get(that.name).firstChunk; + var cachedFirstChunk = config && config.firstChunk; var firstChunk = chunk.slice(0, 16); if (!cachedFirstChunk) {