-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Upload unnecessary copies files #13763
Comments
@icewind1991 is this addressed with #13360 ?? |
@MasterCassim are you using external storage ? |
No
They are, core/lib/private/files/view.php Line 704 in 8c9f1a9
|
Does it mean PHP's internal upload mechanism first stores the file in a temp location and then we read it from there ? |
yes - this is why we require big temp space - e.g. max-upload-size * users-concurrently-uploading |
at the end this is just another reason to move away from POST file upload and use PUT and/or Chunking and/or WebDAV in the browser as well |
scheduling for 8.1 |
I think it would be a good argument to start the "port web UI to WebDAV" task with the upload/download. I think these two don't need any special library so it should hopefully not be hard to do: |
8.2 - because of webdav in files app approach |
9.0 - because of .... |
This will be the solution: Webdav PUT: #4380 Closing as duplicate |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hey,
I finally got upload of files greater than 4GB working by upgrading to the php 5.6 version. The problem now is that once the file is uploaded it gets copied to the destination file 4096 byte at a time (fromTmpFile() -> file_put_contents() -> streamCopy()); for large files this takes really long and uses all available disk bandwidth (clogging the system). Wouldn't is be better to just move the file by move_uploaded_file() or rename()? I have tryed to modify the code but have not succeeded yet.
Any thoughts?
Steps to reproduce
Expected behaviour
The file is moved after uploading to target.
Actual behaviour
The file is copied and the system clogged for the duration.
Server configuration
Operating system: Ubuntu 14.04
Web server: nginx/1.4.6
Database: mysql Ver 14.14 Distrib 5.5.41, for debian-linux-gnu (x86_64) using readline 6.3
PHP version: 5.6.1
ownCloud version: (see ownCloud admin page) 7.0.4 (stable)
Updated from an older ownCloud or fresh install: updated
List of activated apps: none
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/... no
Are you using encryption: no
Client configuration
Browser: lates chrome
Operating system: windows 7
Logs
Web server error log
ownCloud log (data/owncloud.log)
Browser log
The text was updated successfully, but these errors were encountered: