You may notice that there is no “upload file” option within pastie.
However, the “right” way is to pipe it into some program that will upload it for you, instead of piping output to a file and uploading that file.
See http://pastie.org/help/ on the right hand side.