You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lorenzo De Sio <l....@w4b.it> on 2002/08/01 14:37:44 UTC

Uploaded file name problem

Hi,

I've got a curious problem w/ the file upload functionality.

I wrote this upload form:

		<form action="index" method="post"
enctype="multipart/form-data">
		<input name="uploaded_file" type="file"/>
		<input type="submit"/>
		</form>


As I post it to any Cocoon URL (actually itself) it uploads everything OK.
The problem is that all files get named (on the Linux server box) with the
full path of the original file on the client.

This is the curious directory listing on my Linux box:

> [ldesio@xavier _upload]# ls -al
> total 60
> drwxrwxr-x    2 root     w4b          4096 Aug  1 13:28 .
> drwxrwxr-x    9 root     w4b          4096 Jul 31 16:51 ..
> -rw-r--r--    1 root     root          100 Aug  1 13:22
0_W:\accademia\img\frame_r2_c1.gif
> -rw-r--r--    1 root     root        30733 Aug  1 13:28
C:\Documenti\ZIP2EXE.EXE
> -rw-r--r--    1 root     root         7142 Aug  1 13:06
W:\accademia\img\cover.gif
> -rw-r--r--    1 root     root          100 Aug  1 13:22
W:\accademia\img\frame_r2_c1.gif
> -rw-r--r--    1 root     root          200 Aug  1 13:26
W:\accademia\img\frame_r4_c1.gif

BTW, I'm using Win2000/IE5.5

Any hints?

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>