diff options
author | emkael <emkael@tlen.pl> | 2019-01-01 17:11:00 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-01-01 17:11:00 +0100 |
commit | 36f25b4e845b9a53dd6f11402de5bfa61078fdf9 (patch) | |
tree | 9cf8ee811f2e6c6fb5f90e6001d45d347f969b01 /lib/facebook-graph-sdk/src/Facebook/FileUpload/FacebookResumableUploader.php | |
parent | eab8a101e7a3fcbb41e01a574985e06c5a3775de (diff) |
Facebook API updated
Diffstat (limited to 'lib/facebook-graph-sdk/src/Facebook/FileUpload/FacebookResumableUploader.php')
-rw-r--r-- | lib/facebook-graph-sdk/src/Facebook/FileUpload/FacebookResumableUploader.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/facebook-graph-sdk/src/Facebook/FileUpload/FacebookResumableUploader.php b/lib/facebook-graph-sdk/src/Facebook/FileUpload/FacebookResumableUploader.php index 92a22f1..46a2727 100644 --- a/lib/facebook-graph-sdk/src/Facebook/FileUpload/FacebookResumableUploader.php +++ b/lib/facebook-graph-sdk/src/Facebook/FileUpload/FacebookResumableUploader.php @@ -121,6 +121,16 @@ class FacebookResumableUploader throw $e; } + if (null !== $preException->getStartOffset() && null !== $preException->getEndOffset()) { + return new FacebookTransferChunk( + $chunk->getFile(), + $chunk->getUploadSessionId(), + $chunk->getVideoId(), + $preException->getStartOffset(), + $preException->getEndOffset() + ); + } + // Return the same chunk entity so it can be retried. return $chunk; } |