I upload images to Amazon S3, but I still get an error message . Please provide either a file name or a FileStream file, or provide a ContentBody to place the object on S3.
I basically load the image from the file system control and then click on the code below. It loads locally well, but not on Amazon. Accounts are fine, so these are only errors when it comes to uplaoding.
Can anyone understand why this is happening?
protected void uploadImg(int prodId, int prodFormat) { if (imgPack.HasFile) { string fileExt = Path.GetExtension(imgPack.PostedFile.FileName); string filename = "img" + prodId + ".jpg";
source share