Results 1 to 3 of 3
- 04-14-2012, 07:39 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
Accessing the Value of a Form File Input
Hello everyone,
I'm currently writing a web application, which involves an html form that includes the upload of very large files (>1 GB). I'm trying to write a java applet that will handle the file upload part of the form, using FTP protocol for the upload.
I want to select the file to upload through a traditional html form file input element, after which, javascript will call a function in the applet and trigger the FTP upload. I have this solution working, except for 1 issue that I haven't been able to sort out.
In javascript, the 'value' field of the file input element only returns the name of the file, and not the file path. I need the file path in order to be able to access the file in Java and upload it to the server.
Does anyone know any way to access the file path of the selected file through Java? Or some other way?
Thanks,
Shawn
- 04-14-2012, 07:43 PM #2
Re: Accessing the Value of a Form File Input
Why do they call it rush hour when nothing moves? - Robin Williams
- 04-15-2012, 04:59 AM #3
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
Re: Accessing the Value of a Form File Input
Using the html form input is just cleaner and simpler for me to implement for this application, along with the consistency with the rest of the site that it would provide. When it comes down to it though, I will need to do whatever it takes to make the application function and am not opposed to using a FileDialog or JFileChooser if I need to. I would like to exhaust the possibility of doing it the way I would like first, though.
I've self signed the jar and am able to access the local file system fine.
Shawn
Similar Threads
-
Accessing a keyboard input element name in a Class?
By toycar in forum New To JavaReplies: 3Last Post: 03-17-2012, 03:49 AM -
How to take input from a form and then output a replace rule
By shaburnburn in forum New To JavaReplies: 2Last Post: 01-25-2012, 11:41 AM -
how to retrieve data when i select the input from the form
By sharanya in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 03-08-2011, 10:39 AM -
Create a form, input some data and save to file
By cselic in forum AWT / SwingReplies: 5Last Post: 05-07-2010, 12:28 PM -
designing form to input into database
By javahsm in forum New To JavaReplies: 2Last Post: 11-29-2008, 10:37 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks