-
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
Webdav - Wrong filesize for zip files #234
Comments
Some additional information: I don't understand why it works with regular files and not zip files. Is it treated differently by the system? JM |
@evert Hey - it's me again! ;-) Any ideas? THX |
I do not.. the default sabredav classes will just do a filesize() on filenames; I am not aware of a case or system where the result of filesize() would be misreported. So this leads me to the only logical conclusion that whatever you use to determine the filesize is wrong. |
Hi Evert, I feel a little bit dumb: I have tinker with my installation of Owncloud and between updates and changing options on my webhosting space and owncloud options, I was able to make it work. The issue is that I don't really know what made it work and I am not able to break it again... Is there a way to download an old version of the Owncloud (in my case 4.5.0)? In order to make sure that I didn't dreamed all of this, I would like to be able to reproduce the issue... Regards, JM |
That's more of a question for Thomas. I'm actually ownclouds greatest competition, with a vested interest to give bad advice. (just kidding) |
The filesize (which is returned via webdav) is taken from the file_cache: I'd assume the web gui grabs the same value. Let me summon the file cache master: @icewind1991 ;-) THX |
Hi, actually with me it shows roundabout the uncompressed size of the zip in the browser (see picture) and obviously reports that uncompressed size to webdav clients aswell, resulting in corrupted downloads/syncs, atleast on some 3rd party webdav apps (iphone). edit: edit2: edit3: edit4: |
fixes #234 Conflicts: lib/filecache.php
The filesize of zip files seems overestimated through the webdav interface. It has the following consequences:
Please note that the issue doesn't concerns the web interface, which is working fine (filesize displayed are correct and the same files refused by the webdav interface can be uploaded without any issue).
It is hosted on a mutual hosting server with the following characteristics:
The text was updated successfully, but these errors were encountered: