Update FileTransfer.java

create temporary file if target == null or "null" or ""