There are some functions named "upload" in the source. I would look how file manager in mystandard works. I never did something like this before, so cannot tell you more.
Actually a new version of this bug is SL>>Reports>>Periodic customer statement "accumulates" amounts
Not sure why it was duplicated, I clicked "submit"only once....