fix html upload not allow png photos, add jpeg suffix in swf upload