try passing fe.toURL to upload function