Filemanager downloaded filesize

Version 1.232


Related to: Change how the filesize are counted. Because the filamanger is jailed, access to the byte logs it no longer available so the filesize is coutned before being downloaded. That causes a problem if the whole file isn't downloaded, as the entire size will be counted against the account. The fix will 1) open a file descriptor 2) jail the DA process to the users home dir as usual 3) send the file 4) take the actual number of bytes sent and write it to the previously opened file descriptor which should be writing to the correct bytes log outside of the jail.

Interested to try DirectAdmin? Get a 30-day Free Trial!