---
title: "Difference in ASP.NET file uploading functions"  
description: "Difference in ASP.NET file uploading functions"  
author: "Manoj Bhatt"  
published: 2014-08-22  
updated: 2014-08-22  
canonical: https://www.mindstick.com/forum/2082/difference-in-asp-dot-net-file-uploading-functions  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Difference in ASP.NET file uploading functions

I am [learning](https://www.mindstick.com/articles/126221/instructional-design-for-elearning-why-it-is-so-important) how to [upload](https://www.mindstick.com/forum/12860/how-to-upload-file-asynchronously-using-generic-handler) a [file](https://www.mindstick.com/articles/59/encrypting-and-decrypting-files-using-c-sharp) to a [server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over) in C# ASP.NET.

What is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between these 2 [functions](https://www.mindstick.com/forum/160140/explain-the-role-of-functions-as-a-service-faas-in-serverless-computing):

element.PostedFile.SaveAs();

WebClient's wc.UploadFile();

## Replies

### Reply by Sumit Kesarwani

Hi Manoj, \

They are extremely different.

HttpPostedFile represents a file that has been sent to your server from a client.

WebClient.UploadFile() allows you to send a file to an arbitrary server from your client.


---

Original Source: https://www.mindstick.com/forum/2082/difference-in-asp-dot-net-file-uploading-functions

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
