private int Upload(HttpPostedFile postedFile) {
            string retFile = FileHelper.Upload2Server(
                "http://localhost:41496/receive.aspx",
                postedFile.FileNameExt(),
                postedFile.InputStream);

            return (retFile.Length > 0) ? 0 : 1;
        }
Exemple #2
0
        /// <summary>
        /// do upload
        /// </summary>
        /// <param name="postedFile"></param>
        /// <returns></returns>
        private int Upload(HttpPostedFile postedFile) {

            string retFile = FileHelper.Upload2Server(
                fileServer,
                postedFile.FileNameExt(),
                postedFile.InputStream);

            return (retFile.Length > 0) ? 0 : 1;
        }