Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Chunks Overwrite Themselves #164

Open
jd82110 opened this issue Jun 17, 2019 · 0 comments
Open

Chunks Overwrite Themselves #164

jd82110 opened this issue Jun 17, 2019 · 0 comments

Comments

@jd82110
Copy link

jd82110 commented Jun 17, 2019

I've set up the Yii2 widget to have a maxChunkSize of 10mb, as shown below:

            echo FileUploadUI::widget([
                'model' => new Model,
                'attribute' => 'doc',
                'url' => ['site/upload'],
                'gallery' => false,
                'fieldOptions' => [
                    'accept' => '*'
                ],
                'clientOptions' => [
                    'maxFileSize' => 100000000,
                    'maxChunkSize' => 10000000, // 10 MB
                ],

The chunks are successfully sent to the server but they are not stitched together. Rather, each chunk overwrites the previous leaving only one file that contains the last chunk. If I were to upload a 22mb file, the resulting file on the server would only be 2mb since it is the last chunk that is uploaded.

Am I missing a config option? What can I do to resolve this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant