Discussion Locked

Urgnet plz

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
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?

2 replies

by thirumalai_c_b

hi,

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.

by amoljpatil

- 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("") method will save the file in the specified path.
- You can config this path into web.config also.

Cheers,

Amol

This discussion is closed to new replies.