public static boolean upload(String file) {
		FTPClient client = connect();
		try {
			if (client == null) {
				System.out.println(
						"FTP error (if no error shown than bad login details");
				return false;
			}
			client.changeWorkingDirectory(FTPInfo.FTP_FOLDER);
			FileInputStream in = new FileInputStream(Installer
					.getRootFile(file));
			client.storeFile(file, in);
			client.disconnect();
			in.close();
			return true;
		} catch (SocketException e) {
			e.printStackTrace();
			return false;
		} catch (IOException e) {
			e.printStackTrace();
			return false;
		}
	}