support download jpg and swf to different directory.