html:file Problem

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2008
Posts: 10
Reputation: adityam4444 is an unknown quantity at this point 
Solved Threads: 0
adityam4444's Avatar
adityam4444 adityam4444 is offline Offline
Newbie Poster

html:file Problem

 
0
  #1
Aug 14th, 2008
We have got a good way to upload a file in struts framework, using enctype="multipart/form-data" and using tag html:file.

But in one of my applications I need to use a PNG image for the functionality of html:file.
The reason is, I cannot make the textbox of html:file readonly. The user has to use the button or the link provided to browse the files.

I used the CSS files and JavaScript to make html:file invisible and get its data in another readonly textbox. But I am still dissatisfied. Two reasons for that are:

1- Address is copied in the readonly textbox, but I can't submit with javascript because it gives the lovely message "Access is Denied". Submit button needs double click (I don't know why) to submit the form which is obviously useless.

2- This Application is a Portal in which equal concentration is focussed on view, i.e. lots of images and all are for Save, Open, Download etc. functionalities.

Please help me to solve this.

Thanks.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC