Comment history

Versions of a comment on Attachment downloads are broken for files over 500 MiB, newest first.

Current version | Edited by Rex
Changes
Same error for me.Removed: After investigating, I found that `serve_stored_passthrough_stream()` rejects any object whose size exceeds constants::MAX_MEDIA_PROXY_BYTES` before attempting to stream it:Added: After investigating, I found that `serve_stored_passthrough_stream()` rejects any object whose size exceeds `constants::MAX_MEDIA_PROXY_BYTES` before attempting to stream it:Added: ```rustif head.content_length > constants::MAX_MEDIA_PROXY_BYTES as u64 { return storage_error_response(key, StorageError::StreamTooLong);}Added: ```MAX_MEDIA_PROXY_BYTES is currently defined as:Added: ```rustpub const MAX_MEDIA_PROXY_BYTES: usize = 500 * 1024 * 1024;Added: ```
Show
Same error for me. After investigating, I found that serve_stored_passthrough_stream() rejects any object whose size exceeds constants::MAX_MEDIA_PROXY_BYTES before attempting to stream it:
if head.content_length > constants::MAX_MEDIA_PROXY_BYTES as u64 {
    return storage_error_response(key, StorageError::StreamTooLong);
}
MAX_MEDIA_PROXY_BYTES is currently defined as:
pub const MAX_MEDIA_PROXY_BYTES: usize = 500 * 1024 * 1024;
Original by Rex
Show
Same error for me. After investigating, I found that serve_stored_passthrough_stream() rejects any object whose size exceeds constants::MAX_MEDIA_PROXY_BYTES` before attempting to stream it: if head.content_length > constants::MAX_MEDIA_PROXY_BYTES as u64 { return storage_error_response(key, StorageError::StreamTooLong); } MAX_MEDIA_PROXY_BYTES is currently defined as: pub const MAX_MEDIA_PROXY_BYTES: usize = 500 * 1024 * 1024;