Web Development

Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!

General discussion


Urgnet plz

By aamirjavied ·
I have site of artical , i give option site that user uplaod artical file like browse style simply browse fiel and uplaod ..i want that user simply give dir path and application upload all file auto witch he find in this dir..is it possibal in asp.net...if yes then plz how?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by thirumalai_c_b In reply to Urgnet plz


you can use microsoft scripting runtime library and map the folder. then use for each command to read files one by one and upload the same.

Collapse -

by amoljpatil In reply to Urgnet plz

- Use the HTML, File Field control.
- Suppose ur File Field contorl name is : htxtFileField.
- htxtFileField.PostedFile.FileName will give you the path & name of uploaded file.
- htxtFileField.PostedFile.SaveAs("<Path where you want to upload the file>") method will save the file in the specified path.
- You can config this path into web.config also.



Related Discussions

Related Forums