Opened 11 years ago

Closed 11 years ago

#3823 closed Bug (invalid)

Upload web form fails but response is "success"

Reported by: dz0ny Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 2.12
Severity: Major Keywords:
Cc:

Description

What happens?

  • When uploading file using web form in custom client upload fails(no torrent is added), but return of that request is message ({ "success": true, "msg": "Torrent Added" })

main difference is in payload(fails using chrome extension)

------WebKitFormBoundaryadaxdJJQ6fBPoCQU
Content-Disposition: form-data; name="X-Transmission-Session-Id"

vBTIE4myiPniH19DceKIxVxSqiDQhobeKR0YqQHsjPpGaKgu
------WebKitFormBoundaryadaxdJJQ6fBPoCQU
Content-Disposition: form-data; name="torrent_files[]"


------WebKitFormBoundaryadaxdJJQ6fBPoCQU--

successful (via transmission web ui)

------WebKitFormBoundaryo0vdEzay4UhPBhkn
Content-Disposition: form-data; name="torrent_files[]"; filename="ubuntu.torrent"
Content-Type: application/x-bittorrent


------WebKitFormBoundaryo0vdEzay4UhPBhkn
Content-Disposition: form-data; name="X-Transmission-Session-Id"

vBTIE4myiPniH19DceKIxVxSqiDQhobeKR0YqQHsjPpGaKgu
------WebKitFormBoundaryo0vdEzay4UhPBhkn--

The main problem is that with webkit, you can't manipulate filename or content-type at runtime using formdata or filereader. The file i'am trying to upload is encode as blob.

Change History (4)

comment:1 Changed 11 years ago by jordan

dz0ny, what should Transmission be doing in this case?

comment:2 Changed 11 years ago by jordan

  • Summary changed from Upload web form fails but response is succes to Upload web form fails but response is "success"

comment:3 Changed 11 years ago by livings124

dz0ny: ping

comment:4 Changed 11 years ago by livings124

  • Resolution set to invalid
  • Status changed from new to closed

Please reopen with more information.

Note: See TracTickets for help on using tickets.