-
Notifications
You must be signed in to change notification settings - Fork 20
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
File upload limited by size is blocked after assembling chunks #580
Comments
I assume this is related? The web interface could also send the Can you confirm the Apache version? |
@nickvergessen Both |
Something weird is happening when uploading chunks: The first check on EDIT: The problem is that the path is transformed between both calls. On the second call it is Also #330 breaks scanning part files. So they will be ignored anyway. protected function isBlockablePath(IStorage $storage, string $path): bool {
// [...]
// Problem 1: part files are ignored
if (preg_match('/\.ocTransferId\d+\.part$/i', $path)) {
return false;
}
// [...]
return isset($segment[2]) && in_array($segment[2], [
// Problem 2: 'uploads' is missing here
'files',
'thumbnails',
'files_versions',
]);
} |
yeah quite many people have rules for mimetypes and when we check the mimetype on part files it goes wrong and would block uploading bigger files when e.g. the configured rules only allow uploading txt, doc, docx and folders.
And are they the correct/final values? |
Yes, they are. |
Started an attempt in #585 |
Steps to reproduce
occ config:app:set files max_chunk_size --value 5242880
Configured flow
Only the last request is blocked, not the chunks
Expected behaviour
The upload should be blocked on the first chunk instead of wasting storage and bandwidth resources.
Actual behaviour
The upload is blocked after a large file has been uploaded and assembled on the server.
This is a regression of #211.
Server configuration
Operating system: Linux
Web server: Apache
Database: MariaDB
PHP version: 8.1
Nextcloud version: master
Where did you install Nextcloud from: Git
The text was updated successfully, but these errors were encountered: