using System; using System.IO; namespace ConsoleApplication1 { public partial class AmazonS3 { public object FileUpload1 { get; private set; } public object Response { get; private set; } protected void Page_Load(object sender, EventArgs e) { } protected void upload(string myBucketName, string accessKey , string secretKey,) { } Stream st = FileUpload1.PostedFile.InputStream; string name = Path.GetFileName(FileUpload1.FileName); string myBucketName = ""; string accessKey = ""; string secretKey = ""; bool a; AmazonUploader myUploader = new AmazonUploader(); a = myUploader.sendMyFileToS3(st, accessKey, secretKey); if (a == true) { Response.Write("successfully uploaded"); } else Response.Write("Error"); } } }
protected void Page_Load()
static void Main()
protected void upload()
upload
new AmazonUploader()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)