sad47 Posted April 28, 2012 Posted April 28, 2012 I need to write some files to server via ASP.NET method PostedFile.SaveAs() - it is a standard way to upload files. Where can I write those files? I am trying to do that in public_html folder, but I still get this exception: Access to the path "/home/sad47/public_html/somefile.txt" is denied. Can somebody help me?
mn1979 Posted April 30, 2012 Posted April 30, 2012 i have.!!! i think!!! the same problem, but with JSPFileOutputStream fileOut = new FileOutputStream(saveFile);with errorFileNotFoundException: tin.pdf (Permission denied) i was give max permission on folder and files, but the problem persist after a while..... i made it I use the complete path: saveFile="/home/mn1979/public_html/inFiles/"+saveFile; One problem solved...let's go to the next one sad47, try create any directory and give it permissions
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now