RetroShare / RSNewWebUI

30 stars 20 forks source link

Serialize new file request's payload manually #49

Closed rottencandy closed 2 years ago

rottencandy commented 2 years ago

Fixes #47 The rsFiles/FileRequest API expects an integer in the size property and does not work with a string value. JS Number cannot hold size values for files > 2Gb. The only way to pass size without truncating the number seems to be by manually serializing the payload data.

rottencandy commented 2 years ago

cc: @Kumaravinash9 @csoler can you please test this

csoler commented 2 years ago

seems to work. It's even simpler!