Connecting Tech Pros Worldwide Forums | Help | Site Map

input type="file" value

Newbie
 
Join Date: May 2006
Posts: 31
#1: Jul 11 '06
hai everyone...

can i need your help?
recently i'm doing a program for upload image or file..
i've attmpted to post the location or path to the page then input it into the form using <input type = "file" value = ${paths} name = "image">, but its not working..

1. is there a way to upload file without using the browse button?
2. is there a way to upload file using <input type = "file" value = ${paths} name = "image">?

thank you.

Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,183
#2: Jul 11 '06

re: input type="file" value


Are you sure this is a Java question and not a HTML/PHP question?
Quote:
but its not working..
Please describe the manor in which it is not working, what do you see that is wrong? What happens what is wrong? Do you get any error meaages?
Newbie
 
Join Date: May 2006
Posts: 31
#3: Jul 11 '06

re: input type="file" value


Actually, it is HTML question, but also relate with java.
I set the value of file input without using browse button.
<input type = "file" value = ${paths} name = "image">
But the value not appear at the browser and not carry the value..
any solution?
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,183
#4: Jul 12 '06

re: input type="file" value


Posting 1 line of your non-working file is not helpful in locating the error

I do not see how

<input type = "file" value = ${paths} name = "image">

can relate to Java, there is not a single piece of Java in this line of code, post the full code and the file name.
Newbie
 
Join Date: Jul 2006
Location: Jaipur, India
Posts: 4
#5: Aug 2 '06

re: input type="file" value


I guess you are working on html, try doing this........

<img src=(give the path of the image)>

if this doesn't work try using microsoft frontlook. Its a tool where all the coding is done by the wizard and you just need to copy and paste items where you want to....

I hope this works....
Reply