Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does isChunk() check like this? It seems impossible to determine through this check. #6

Open
wf58585858 opened this issue Dec 11, 2023 · 1 comment

Comments

@wf58585858
Copy link

private function isChunk(): bool
{
    return $this->file->name === 'blob'
        && $this->file->type === 'application/octet-stream';
}

Why do we need to check if the name is 'blob'? I have the original name of the file I uploaded here, so I cannot determine it through this check.

@hossein-zare
Copy link
Owner

hossein-zare commented Dec 12, 2023

Each file needs to be sliced into chunks and then sent to the server. Consider implementing the client-side correctly.

Please see https://github.com/hossein-zare/wester-chunk-upload-examples/blob/27a70577433f437aec18bb1992622498dae837a3/javascript/chunk.js#L43C53-L43C53

Javascript Example (Client-Side): https://github.com/hossein-zare/wester-chunk-upload-examples/tree/master/javascript

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

No branches or pull requests

2 participants