Which version of 1.1.4 are you using?
Hi all,
I'm a new user of dbforms, please help me!!
I can't make the file upload working under dbforms 1.1.4. The same configuration and code work on dbforms 1.1.2.
The behaviour is that I can choose a file from hard disk and the name of the file is saved in the record in the database but the file is not uploaded in the directory that I specify in dbforms-config.xml.
What did I do wrong?
This is my dbforms-config.xml:
<table name="news"
defaultVisibleFields="seq_news" >
......
<field name="image1" fieldType="diskblob" size="120" directory="E:\Viviana\selt\servlet\mountpoint" encoding="false" />
</table>
The field image1 in the database (postgreSQL) is: IMAGE1 VARCHAR(120) NULL.
The code of my jsp (generated by DevGui) is:
<db:dbform tableName="news" maxRows="1" followUp="/news_single.jsp" followUpOnError="/news_single.jsp" autoUpdate="false" multipart="true">
<db:header/>
<db:body>
<table cellspacing="0" cellpadding="4" border="0" width="70%" align="center">
...
<tr class="clsEvenDataTableRow">
<td style="font-weight: bold" align="left">image1</td>
<td align="left">
<db:file styleClass="clsInputStyle" id="image1" fieldName="image1"/>
</td>
</tr>
</table>
<br/>
<center>
<db:insertButton showAlways="false" styleClass="clsButtonStyle" caption="Salva" id="saveButton"/>
</center>
</db:body>
<db:footer>
<table border="0" align="center">
<tr valign="middle">
<td colspan="4">
<hr/>
</td>
</tr>
<tr align="center">
<td align="center">
<db:updateButton styleClass="clsButtonStyle" style="width:90" caption="Aggiorna" id="saveButton"/>
</td>
<td align="center">
<db:deleteButton styleClass="clsButtonStyle" style="width:90" caption="Cancella"/>
</td>
<td align="center"/>
</tr>
</table>
</db:footer>
</db:dbform>
Thanks in advance and excuse me for my english.... Viviana
-- Shawn
Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ DbForms Mailing List
http://www.wap-force.net/dbforms
