views:

70

answers:

3

Can anyone show me how to create an HTML page that allows to upload files? It will be really appreciated.

A: 

http://www.cs.tut.fi/~jkorpela/forms/file.html

You would need some server side componenet ot store the uploaded content for you. There are near to infinite options for that. :) Also, you have styled File uplaod components provided by various Ajax libraries and Tool kits like DOJO ,jQuery that make it look more nice and provide various flavors to do this.

+1  A: 

You can't do it in pure HTML, you need a script on server side to store the file.

If you can use PHP, check the manual on handling file uploads for details.

Pekka
+1  A: 

File uploads cannot be done purely in HTML. You must have some kind of server logic to process the Multipart-data from the HTML-form (by using ASP.Net, PHP or whatever).

Mickel
ya im using c# asp.net.can you plese send some sample code
Anand
here's one way to do it: http://www.dotnetheaven.com/UploadFile/rahul4_saxena/FileUpload06072007061316AM/FileUpload.aspx
Mickel