How to upload all files from source folder to web path.
-
Hi, I need to upload all files from the given client's physical folder path to server path. How do I upload all files to web server path without using "file" type. Rams.
Be simple and Be sample.
ramskr wrote:
web server path without using "file" type.
But whats the problem with File type ?
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
-
ramskr wrote:
web server path without using "file" type.
But whats the problem with File type ?
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
-
Hi, I need to upload all files from the given client's physical folder path to server path. How do I upload all files to web server path without using "file" type. Rams.
Be simple and Be sample.
ramskr wrote:
How do I upload all files to web server path without using "file" type.
First get the files in that directory using
System.IO.Directory.GetFiles
The above line will return all the files present in the directory as a string array.
ramskr wrote:
I need to upload all files from the given client's physical folder path to server path.
Use webclient class. It is having upload method. Start a loop till end of the above string array and upload each file using webclient method in the loop. Finally dispose webclient object
printf("Navaneeth!!") www.w3hearts.com
-
ramskr wrote:
How do I upload all files to web server path without using "file" type.
First get the files in that directory using
System.IO.Directory.GetFiles
The above line will return all the files present in the directory as a string array.
ramskr wrote:
I need to upload all files from the given client's physical folder path to server path.
Use webclient class. It is having upload method. Start a loop till end of the above string array and upload each file using webclient method in the loop. Finally dispose webclient object
printf("Navaneeth!!") www.w3hearts.com
I need the list of client side files for the selected folder. For eg, if user choose D:\Test, my web application needs to upload all files in that client folder to web path. If we use system.io.directory.getfiles - it searches on server and cause exception as "could't find the path".. Is there any way to get all files on client machine and upload to server machine.
Be simple and Be sample.
-
I need the list of client side files for the selected folder. For eg, if user choose D:\Test, my web application needs to upload all files in that client folder to web path. If we use system.io.directory.getfiles - it searches on server and cause exception as "could't find the path".. Is there any way to get all files on client machine and upload to server machine.
Be simple and Be sample.
ramskr wrote:
Is there any way to get all files on client machine and upload to server machine.
Upto my knowledge there is no method to do this using server side scripting. Because this will break the security system. If a server side script can list out the files in your directory then what is the security for your files ?
printf("Navaneeth!!") www.w3hearts.com
-
ramskr wrote:
Is there any way to get all files on client machine and upload to server machine.
Upto my knowledge there is no method to do this using server side scripting. Because this will break the security system. If a server side script can list out the files in your directory then what is the security for your files ?
printf("Navaneeth!!") www.w3hearts.com
Hi, I need user on client machine to select path from that machine (local folder only). On Upload, my web application needs to get all the files in that folder and upload it to fixed server path. All I need is to get files for the selected client path.
Be simple and Be sample.