Fixed a bug in torrent upload