)
)
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Windows.Forms;
namespace ftp_test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text != "")
{
if (comboBox1.Text != "")
{
OpenFileDialog oFile = new OpenFileDialog();
oFile.Title = "Select a patch_mp.ff to upload to PS3";
oFile.Filter = "Fast Files (*.ff)|*.ff";
if (oFile.ShowDialog() == DialogResult.OK)
{
string ftpAddress = "ftp://" + textBox1.Text + "/dev_hdd/game/" + comboBox1.Text +
"/USRDIR/patch_mp.ff";
FtpWebRequest request = (FtpWebRequest) WebRequest.Create(ftpAddress);
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential("FTP12345", "");
StreamReader sourceStream = new StreamReader(oFile.FileName);
byte[] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd());
sourceStream.Close();
request.ContentLength = fileContents.Length;
Stream requestStream = request.GetRequestStream();
requestStream.Write(fileContents, 0, fileContents.Length);
requestStream.Close();
FtpWebResponse response = (FtpWebResponse) request.GetResponse();
MessageBox.Show(response.StatusDescription, "Information", MessageBoxButtons.OK,
MessageBoxIcon.Information);
response.Close();
}
}
else
{
MessageBox.Show("You Must Choose A Game Version From The DropDown Box", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
else
{
MessageBox.Show("You Must Enter The IP Address of Your PS3", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
}
}
UNTESTED

)
)Copyright © 2026, NextGenUpdate.
All Rights Reserved.