Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm developing a project in asp.net webform and sql server .Now my client wants to upload csv file .The columns are like lotNumber ,Description, and others.There are some lot imagaes with respective lotNumbers.If the files are uploaded to the server then there might have no issue but now the issue is they don't know how to upload files through browsers so that they will put the images in the same directory with respective lotNumber but that won't be specified in the csv file columns.My role is to fetch the Lot number from the csv coloum and fetch the image stored in the client browser directory and upload the files to the server and save them to the database .I know that most of the browsers cant have access to the client local machine for some security issues. Can any one help me to get the work done ?

What I have tried:

I've tried by Jquery also but didn't work.I need some ideas cause I've to get the job done at any cost
Posted
Updated 22-Jul-16 13:05pm

Quote:
Can any one help me to get the work done ?

No, and you even know why.
Quote:
I know that most of the browsers cant have access to the client local machine for some security issues.

You are right, this is a security feature.

But if you can let the user manually upload a file, it is possible.
HTML DOM Input FileUpload Object[^]
jQuery File Upload Demo[^]
 
Share this answer
 
v2
You can't.

No browser has automated access to the client's file system, because that would be a major security vulnerability. The only way you can access files on the client is by showing the "Open File" dialog and having the user select the files.
 
Share this answer
 

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