pkgs: Refs #2112 file upload consume memory

In save() function, stream_copy_to_stream() is called twice, so memory
consumption is double.

This commit fix it.