The code that calls the SetContent method seems to be exactly the same and file seems to be correct since a new file with zero bytes is created at the correct location.ĭoes any one have any suggestion please? I debugged this code dozens of times and I cannot see the problem. HttpPostedFileBase newFile = Request.Files as HttpPostedFileBase ĬontentService service = new ContentService() īlog.Image = service.UploadFile(newFile, string.Format("",, blog.RowKey)) īefore the image file is uploaded to the storage, the Property InputStream from the HttpPostedFileBase appears to be fine (the size of the of image corresponds to what is expected! And no exceptions are thrown).Īnd the really strange thing is that this works perfectly in other cases (uploading Power Points or even other images from the Worker role). ![]() The above code is called by this code. Int indexBar = ('\\') įilename = (indexBar 1) įilename = file.FileName Ĭ(file, Helper.CombinePath(uploadPath, filename), true) Public string UploadFile(HttpPostedFileBase file, string uploadPath) Var blob = blobContainer.GetBlobReference(filename) ī = file.ContentType ī = "application/octet-stream" Public void SetContent(HttpPostedFileBase file, string filename, bool overwrite)ĬloudBlobContainer blobContainer = GetContainer() The following is the code that I am using: // These two methods belong to the ContentService class used to upload When I go to cloud storage studio, the file is there, but with a size of 0 (zero) bytes. It will also help you in ignoring any website, domain, program or URL in your Computer.īelow is the step-by-step procedure to follow.When I upload an image file to a blob, the image is uploaded apparently successfully (no errors). This will stop the files that you list from scanning by the Avast. The Global Exclusion list is used when you want to exclude some applications or ignore files. Global Exclusion List For Files/Folders/Programs To Prevent Their Scanning By Avast Exclusion List For The Specified Shield Generally, when Avast Firewall blocks any webpage, it will display a message saying, “Avast web shield has blocked access to this page”. Global Exclusion List for programs/folders and filesīut, before adding any website or a program to the Avast Exception or whitelist, you need to make sure that the website or the program is clean.I have tested uploading the failing files to a number of different servers with the same negative result so it can't be a server issue. Small files will end up empty on the server while larger files, approx. The first suspicious signs are bogus download URLs. We have noticed an increased presence of these malware versions of famous open source FTP clients. Beware of malformed FileZilla FTP client versions 3.7.3 and 3.5.3. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |