Not able to add multiple files

General support for problems installing or using Deluge
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Not able to add multiple files

Post by mhertz »

Thanks bro for info, that's great - Please let me know if I should drop the PR, if fixes in the horizon anyway, thanks. Really don't get why this here only affects web-ui, with some form parsing error in web-console to boot, but what do I know anyway :)

Edit: Looked little deeper and the issue stems from only one of the torrents getting uploaded to server, after cgi.parse_multipart was removed from twisted.web.http and replaced with email.message_from_bytes, in there commit 4579398. This was then also what makes it a web-UI only issue, as is the only UI uploading to server firstly(through a twisted web resource), before adding torrents(with bencoded payload).
PlayLoud
New User
New User
Posts: 4
Joined: Wed Oct 23, 2024 10:48 pm

Re: Not able to add multiple files

Post by PlayLoud »

ambipro wrote: Mon Oct 28, 2024 12:31 am I consider the thin client the preferred way to use it if you aren't on mobile or something, vastly more performant and on parity with native experience.

Glad you got it sorted.
I'm definitely starting to prefer the thin client.

The option to filter is game changing!
NateHevens
New User
New User
Posts: 1
Joined: Sat Nov 23, 2024 5:11 pm

Re: Not able to add multiple files

Post by NateHevens »

Hi! Sorry to bump. I'm using the web client attached to a seedbox (WhatBox) and having this same issue. I can only add torrents one at a time...
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Not able to add multiple files

Post by mhertz »

Currently you need use gtk-ui or console-ui instead, or downgrade twisted to under 24.0, and btw can also just replace the twisted file http.py with older version, as there in lies the issue(cgi.parse_multipart removed from twisted.web.http and replaced with email.message_from_bytes).
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Not able to add multiple files

Post by mhertz »

In newer distros it's not as easy to downgrade twisted, with bep what's it's name in place. Use at own risk if wanted, but one-liner to replace twisted file with working version, fixing web-UI:

Code: Select all

sudo find /usr -path '*python3*/twisted/web/http.py' -exec curl -L https://github.com/twisted/twisted/raw/refs/tags/twisted-23.10.0/src/twisted/web/http.py -o {} \; 
Change back from 23 to 24 to get newest back again, or reinstall merely.
qm3jp
New User
New User
Posts: 1
Joined: Mon May 19, 2025 5:41 am

Re: Not able to add multiple files

Post by qm3jp »

I've created a PR that pulls in python-multipart to replace the missing parse_multipart in version 24+ of Twisted.
https://github.com/deluge-torrent/deluge/pull/481
Post Reply