@@ -332,11 +332,12 @@ else { _body = [[OFFile alloc] initWithPath: path mode: @"r"]; @try { - uintmax_t fileSize = [[OFFileManager defaultManager] + unsigned long long fileSize = + [[OFFileManager defaultManager] attributesOfItemAtPath: path].fileSize; contentLength = [OFString stringWithFormat: @"%ju", fileSize]; [_clientHeaders setObject: contentLength @@ -1008,11 +1009,12 @@ if (_currentFileName == nil) _currentFileName = [URL.path.lastPathComponent copy]; if (_continue) { @try { - uintmax_t size = [[OFFileManager defaultManager] + unsigned long long size = + [[OFFileManager defaultManager] attributesOfItemAtPath: _currentFileName].fileSize; OFString *range; if (size > ULLONG_MAX) @throw [OFOutOfRangeException exception];