Hi Chris,

Thanks for replying.

The exception is FileNotFoundException (Permission Denied)

If the path is not correct, it should not have "Permission Denied" message.

What i found here is:
- File factually uploaded and stored in mem successfully,
- when i catched the uploaded file in mem and trying to create a
FileInputStream along with the path "/var/../../target_dir", it failed cuz
the stream unable to be created, and then it threw a error said
"FileNotFound..."
- if it is the problem about path or context path, i tested in windows, and
there is no problem.
the path i defined for windows env is like  "c:\Apache\httpdocs\temp\". if
the app uses context path for that, it should failed cuz the path will be
concerted to "<my app root dir>\c:\........\temp\", but it was successful.

Any idea?

On 7/29/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:

Li,

> when i was trying to upload file and write the file into a folder inside
my
> apache vritual host folder, i have exception says, file writing denied.

Have you confirmed that the path is what you expect (i.e. is really is
trying to write to /your/target/directory instead of
/somewhere/else/your/target/directory)? Also, what is the actual error?
The exception message and stack trace might be useful.

-chris








--
When we invent time, we invent death.

Reply via email to