[ htmlunit-Bugs-1513928 ] File not found with form input of file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ htmlunit-Bugs-1513928 ] File not found with form input of file

SourceForge.net
Bugs item #1513928, was opened at 2006-06-28 13:24
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1513928&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.8
Status: Open
Resolution: None
Priority: 5
Submitted By: Julien HENRY (henryju)
Assigned to: Marc Guillemot (mguillem)
Summary: File not found with form input of file

Initial Comment:
Hi,

If I set a file form input with :
D:/foo/bar/myFile
it works, but
file:/D:/foo/bar/myFile
doesn't work (empty file).

I tried with Firefox, and the two syntaxes should give
the same result.

----------------------------------------------------------------------

>Comment By: Julien HENRY (henryju)
Date: 2006-09-15 10:34

Message:
Logged In: YES
user_id=1235926

Firefox 2.0 beta 2 has the same behavior than Firefox 1.5
(submit even if url doesn't point to a real file)

----------------------------------------------------------------------

Comment By: Julien HENRY (henryju)
Date: 2006-09-15 10:29

Message:
Logged In: YES
user_id=1235926

I tested with a simple form (input file + submit button)
I get the result in a servlet thanks to apache-commons
fileupload library and I display file name and file content.

C:\Documents and Settings\jhenry\Bureau\temp.txt
Firefox 1.5 OK
IE 7 OK

file://C:\Documents and Settings\jhenry\Bureau\temp.txt
Firefox 1.5 OK
IE 7 doesn't submit

file:///C:\Documents and Settings\jhenry\Bureau\temp.txt
Firefox 1.5 OK
IE 7 doesn't submit

file:///C:/Documents and Settings/jhenry\Bureau\temp.txt
Firefox 1.5 OK
IE 7 doesn't submit

i don't exist (invalid string)
Firefox 1.5 submit an empty file with an empty filename.
IE 7 doesn't submit

I will try with Firefox 2.0 beta 2, but I need to close this
one first ;)

----------------------------------------------------------------------

Comment By: Marc Guillemot (mguillem)
Date: 2006-09-07 17:39

Message:
Logged In: YES
user_id=402164

The value attribute is simply used as arg of new File(value)
and it seems that file:/D:/foo/bar/myFile is not correct.

Can you check:
- if FF and IE behave the same
- what for other values are accepted (with \? with file:///,
...)

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1513928&group_id=47038

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop