Jump to content

Where Can I Write Uploaded Files?


Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...