leobaz2
asked on
<input type="file">
Is there any way to change the value of the input box of type "file"?
This is my situation. I have 2 input boxes of type "file". One of them is visible, the other is not. The user selects an image from the visible input box. When clicking submit, javascript will call a dll which will create a thumbnail (smaller image) of the image selected on the local machine. What I want to do is to upload both the file and the thumbnail to the server. So in order to do this, I want to place the path of the thumbnail (on the local machine) in the hidden input file box. Can this be done?
Is there another way to upload a file through HTTP that I can take advantage of?
Thanks.
This is my situation. I have 2 input boxes of type "file". One of them is visible, the other is not. The user selects an image from the visible input box. When clicking submit, javascript will call a dll which will create a thumbnail (smaller image) of the image selected on the local machine. What I want to do is to upload both the file and the thumbnail to the server. So in order to do this, I want to place the path of the thumbnail (on the local machine) in the hidden input file box. Can this be done?
Is there another way to upload a file through HTTP that I can take advantage of?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately (285 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
RECOMMENDATION: Award points to COBOLdinosaur http:#8336681
Please leave any comments here within 7 days.
-- Please DO NOT accept this comment as an answer ! --
Thanks,
mplungjan
EE Cleanup Volunteer