/home/techb158/immovalet.com/platform/core/media/src/Chunks/Handler
NameSizeModeActions
AbstractHandler.php43800644editdlrm
DropZoneUploadHandler.php19970644editdlrm
Edit: /home/techb158/immovalet.com/platform/core/media/src/Chunks/Handler/DropZoneUploadHandler.php (1997B)
currentChunk = intval($request->input(self::CHUNK_INDEX, 0)) + 1; $this->chunksTotal = intval($request->input(self::CHUNK_TOTAL_INDEX, 1)); $this->fileUuid = $request->input(self::CHUNK_UUID_INDEX); } /** * {@inheritDoc} */ public function getChunkFileName() { return $this->createChunkFileName($this->fileUuid, $this->currentChunk); } /** * {@inheritDoc} */ public function startSaving($chunkStorage) { // Build the parallel save return new ParallelSave($this->file, $this, $chunkStorage); } /** * {@inheritDoc} */ public function isFirstChunk() { return 1 == $this->currentChunk; } /** * {@inheritDoc} */ public function isLastChunk() { // the bytes starts from zero, remove 1 byte from total return $this->currentChunk == $this->chunksTotal; } /** * {@inheritDoc} */ public function isChunkedUpload() { return $this->chunksTotal > 1; } /** * {@inheritDoc} */ public function getPercentageDone() { return ceil($this->currentChunk / $this->chunksTotal * 100); } }