Click here to Skip to main content
15,867,783 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
Hello, I am developing an asp.net, C# website in which I want suggestions for uploading any type file that is video, audio, ppt, pdf, word etc. from desktop and view it in website and upload is complete. I am looking for some efficient and easy ways to do this. I am using SQL Server. And please be more specific because I lack knowledge in this case that is file uploading, path giving, etc.
P.S I am starting this, so before I start code I need suggestions for better options. I have searched a lot for this. But yet as this is one of my favourite website, i am posting question here expecting some help. :)
Thank you. :)
Posted
Updated 29-Apr-13 6:13am
v2
Comments
Kschuler 29-Apr-13 11:19am    
Your question is too general and you do not provide enough information. What are you having trouble with? I think the most common solution is to use a user name and password to access your site. So why not do that?
[no name] 29-Apr-13 12:19pm    
"expecting some help", and what sort of help are you looking for? This is not a question or a description of any kind of a problem. Lacking knowledge is not a question or a problem. You need to find some tutorials to learn C#, ASP.NET and SQL Server, get some books, search google for what you are looking for. Expecting someone to teach you how to program in a forum posting is not how to go about it.
ExpertITM 29-Apr-13 12:54pm    
Do you mean Desktop as Desktop application?
JL_Coder 29-Apr-13 13:38pm    
No, I mean uploading content from the computer. Just like we do on facebook.

1 solution

It absolutely does not matter what kind of "file type" do you upload.

The simplest way to upload?
HTML
<html>
<body>

<form action="someURI" method="post" enctype="multipart/form-data">
<!-- ... -->
<input type="file" name="file" id="file" /></br>
<input type="submit" name="submit" value="Submit" />

</form>

</body>
</html>


In HTTP request handled on the server side, you will identify the file data using the value of the attribute "name", in this case, "file".

For further detail, please see: http://msdn.microsoft.com/en-us/library/aa479405.aspx[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900