Multiple file upload problem
Hi,
every body i am using asp.net 1.0 and i have a problem.i have a webform for upload the files from client machine.in this i have a html file control and one asp:table and three buttons.when any client want to upload multiple files then he will click on browse and click first button(For ADD only).This button will take the file path from html file control and create a new row in asp:table and write the path on newly added table's row.and html:file control will be blank.same procedure will be happend every time.Add button is a html type control.all this will be done using javascript becoz i dont want to refresh the page everytime when client add the file.After add the files (for example 10 files) client will click on second button.second button is the submit button (ASP:Button) .On click submit i m executing a loop and copy all files on the server using File.copy() method.Becoz i have path not having html file control(this is the reason to use File .Copy()).all are working great but problem is that i am unable to copy a file from client machine which exist on client's system folder like Administrator or desktop Error appears:--File not found or access denied.(if i give the permissions to administrator folder for everyone to read and execute permissions then i am able to upload files from users desktop )but if i am upload a file from users desktop using html file control then file upload on server without any error.
Please solve my problem if someone can.
|