Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im developing a site where i need to upload the files when im working on my local system im not able to upload teh files from teh desktop, its not allowing me to upload.
when i use teh impersonate-true im able to upload all the files from teh desktop but when the same application is called from other system and try to do teh same its not allowing others, then i removed the impersonate.

my question is how to set access to the files when uploading, as we do with the attachment in our mail (web sites)

thanks in advance.
Posted

Your problem is one of permissions. You see standard permissions don't allow anonymous webusers to upload files, mainly because doing so would allow them to modify your website.

You have a few choices to fix this

  • Enable windows auth and force them to login to a valid account(I am assuming IIS on Windows here)
  • setup a quarantine area, give the anonymous web user rights to write to it, and upload the files to that directory.
  • upload your files to a database
 
Share this answer
 
If possible can u provide me teh solution how to do this.
 
Share this answer
 
Here is how to store a document (it really doesn't matter what kind of document it is) in a database.

http://www.codeproject.com/answers/61152/how-do-i-go-about-doing-the-code-for-storing-video.aspx#answer2
 
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