Dominick
04-25-2003, 06:00 AM
Hi everyone:
I have seen a number of posts regarding the ability (or lack thereof) to assign CSS properties to the field <input type=file>. I have the same problem, and have tried a suggestion that was posted:
Create the <input type=file> field and hide it, then create a new text field and button that will pass the file path to the hidden field.
It appears to work in that I receive the email that is sent when submitting the form, and it has an attachment. The problem is that the attachment is nothing more than a blank .dat file.
I'm thinking that the problem is in the name of my text field, which is "*upld1"....Is it possible that the asterisk is causing a hangup? If so, is there something I can do to make the asterisk recognizable by the back-end? FYI - I've tried the forward slash
( "\" ) with no success.
Unfortunately I do not have access to the back-end of this form processor so I can't change the name of the field - it is what it is.
Any advice would be greatly appreciated. Here's my code - note that the visibility is on just to make things easy while trying to work this out.
Thanks,
Dominick
<table>
<tr>
<td align="right">Hide:</td>
<td><input id="real_01" onChange="document.getElementById('fake_01').value=this.value" style="visibility:show;" type="file"></td>
</tr>
<tr>
<td align="right">Show:</td>
<td><input class="textfield" id="fake_01" name="*upld1" size="49" type="text"> <input class="button_b" onClick="document.getElementById('real_01').click()" type="button" value="Browse..."></td>
</tr>
</table>
I have seen a number of posts regarding the ability (or lack thereof) to assign CSS properties to the field <input type=file>. I have the same problem, and have tried a suggestion that was posted:
Create the <input type=file> field and hide it, then create a new text field and button that will pass the file path to the hidden field.
It appears to work in that I receive the email that is sent when submitting the form, and it has an attachment. The problem is that the attachment is nothing more than a blank .dat file.
I'm thinking that the problem is in the name of my text field, which is "*upld1"....Is it possible that the asterisk is causing a hangup? If so, is there something I can do to make the asterisk recognizable by the back-end? FYI - I've tried the forward slash
( "\" ) with no success.
Unfortunately I do not have access to the back-end of this form processor so I can't change the name of the field - it is what it is.
Any advice would be greatly appreciated. Here's my code - note that the visibility is on just to make things easy while trying to work this out.
Thanks,
Dominick
<table>
<tr>
<td align="right">Hide:</td>
<td><input id="real_01" onChange="document.getElementById('fake_01').value=this.value" style="visibility:show;" type="file"></td>
</tr>
<tr>
<td align="right">Show:</td>
<td><input class="textfield" id="fake_01" name="*upld1" size="49" type="text"> <input class="button_b" onClick="document.getElementById('real_01').click()" type="button" value="Browse..."></td>
</tr>
</table>