This project has moved and is read-only. For the latest updates, please go here.

wait upload image successfull

Topics: Developer Forum, Project Management Forum, User Forum
Aug 2, 2014 at 5:14 PM

First! I'm sorry, i'm not good eng

I used flicker .net to upload image in my MVC 4 project

If i run it in localhost. My project upload success and returned url of image

then i uploaded my project to goddady hosting.

i can't get url image return. but my flicker upload successfull.

my code is:

ProductImage image = new ProductImage();
                string fileName = "HiSoftVn-KinhTeenShop-" + product.ProductName + "-" + IOUtil.GenerateSalt(10);
                string FileuploadedID = flickr.UploadPicture(file.InputStream, "HiSoftVn-KinhTeenShop-" + product.ProductName + product.ProductSKU, fileName, Regex.Replace(product.ProductDescription, @"<[^>]+>|&nbsp;", "").Trim(), "Kính, Kính Mắt, Kính Teen, HiSoftVn,," + product.ProductName, true, true, true, ContentType.Photo, SafetyLevel.Safe, HiddenFromSearch.None);
PhotoInfo oPhotoInfo = flickr.PhotosGetInfo(FileuploadedID);

string FileULR = oPhotoInfo.LargeUrl;

thanks you
Aug 3, 2014 at 10:22 PM
Obviously sounds like an issue with Godaddy to me, or a network timeout perhaps? Not sure why you don't get an exception thrown though.

Do you get a FileuploadedID returned at all?