RetroShare / RSNewWebUI

30 stars 20 forks source link

Fix file Size bug #48

Closed Kumaravinash9 closed 2 years ago

csoler commented 2 years ago

Has this been tested? It doesn't seem to fix the bug for me: adding some files through file link sometimes still fails with RS complaining about an absurd size.

rottencandy commented 2 years ago

It did not show any error/warning when I tested it, so I assumed that passing filesize as a string to rsFiles/FileRequest works fine. But now I notice that RS reports an incorrect file size. Thanks for catching this, I overlooked it.

csoler commented 2 years ago

I suppose that the size.xstr64 field must be filled with the number as a string, so that RS catches it. Otherwise it will default to the xint64, which is just wrong.