change .torrent file size limit #17380

Open
opened 2026-02-22 03:48:58 -05:00 by deekerman · 2 comments
Owner

Originally created by @Starship3893 on GitHub (Dec 20, 2025).

Suggestion

Image

It would be nice to be able to set the size limit to KiB values or fractional MiB values (for example, 0.5 MiB), instead of the current minimum of 1 MiB.

Use case

Where this option becomes especially relevant is torrents with a very large number of files, particularly when they are not zipped or packed. In those cases, the file list itself grows significantly, and the .torrent file can exceed common limits even when using large piece sizes (16 MiB, 32 MiB, etc.). At that point, the piece hashes are no longer the main contributor for the .torrent size — the file list is.

Also, some trackers and torrent caches don't allow .torrent above 512kb.

Extra info/examples/attachments

Example 1

When setting it to 1 MiB, a popup notification would appear once the torrent file size exceeds that value.

Image

In this example, I set to 1MiB but got a 3Mib .torrent file, and therefore the message pop ups with the error code 100.

What I was hoping for is the ability to trigger this warning at a lower threshold, such as 512 KiB (or another custom value).

Image
Originally created by @Starship3893 on GitHub (Dec 20, 2025). ### Suggestion <img width="462" height="265" alt="Image" src="https://github.com/user-attachments/assets/2a4236b2-d101-4f45-9d8f-e846e5bc2182" /> It would be nice to be able to set the size limit to KiB values or fractional MiB values (for example, 0.5 MiB), instead of the current minimum of 1 MiB. ### Use case Where this option becomes especially relevant is torrents with a very large number of files, particularly when they are not zipped or packed. In those cases, the file list itself grows significantly, and the .torrent file can exceed common limits even when using large piece sizes (16 MiB, 32 MiB, etc.). At that point, the piece hashes are no longer the main contributor for the .torrent size — the file list is. Also, some trackers and torrent caches don't allow .torrent above 512kb. ### Extra info/examples/attachments Example 1 When setting it to 1 MiB, a popup notification would appear once the torrent file size exceeds that value. <img width="551" height="221" alt="Image" src="https://github.com/user-attachments/assets/144665c4-1a0d-4f67-a4ab-372d6b1bf100" /> In this example, I set to 1MiB but got a 3Mib .torrent file, and therefore the message pop ups with the error code 100. What I was hoping for is the ability to trigger this warning at a lower threshold, such as 512 KiB (or another custom value). <img width="462" height="265" alt="Image" src="https://github.com/user-attachments/assets/2a4236b2-d101-4f45-9d8f-e846e5bc2182" />
Author
Owner

@stalkerok commented on GitHub (Dec 20, 2025):

It seems you don't understand what this parameter means. It has nothing to do with torrent sites.

@stalkerok commented on GitHub (Dec 20, 2025): It seems you don't understand what this parameter means. It has nothing to do with torrent sites.
Author
Owner

@tsweet64 commented on GitHub (Feb 12, 2026):

My understanding (as just a user, not a developer) is that this option just sets the maximum size of .torrent that qbittorrent will be willing to open and read, presumably to prevent resource exhaustion and it choking on a corrupt/malicious .torrent. It isn't really related to the torrent creator beyond that you might open the .torrent you just created.

@tsweet64 commented on GitHub (Feb 12, 2026): My understanding (as just a user, not a developer) is that this option just sets the maximum size of .torrent that qbittorrent will be willing to open and read, presumably to prevent resource exhaustion and it choking on a corrupt/malicious .torrent. It isn't really related to the torrent creator beyond that you might open the .torrent you just created.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#17380
No description provided.