Jump to content

Recommended Posts

Posted

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?

Posted

i have.!!! i think!!! the same problem, but with JSP

FileOutputStream fileOut = new FileOutputStream(saveFile);

with error

FileNotFoundException: tin.pdf (Permission denied)

:(

 

i was give max permission on folder and files, but the problem persist

 

after a while.....

 

i made it :lol:

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...