Hello
I think I found a problem in the dbman sql
When I try to modify a record, I canīt upload a new file, it always get the diretory in my pc instead of uploading the file, even with the default template
I used this code below to do a customized add / modify form, and the delete file is working, the add is working, the only thing that doesnīt work is the file upload in the modify form.
The error that I get when /i try to view the file
A fatal error has occured:
Please enable debugging in setup for more details.
...
<form name="myform" action="db.cgi" method=post <%if enctype%><%enctype%><%endif%>>
<%if attachedfile%>
<a href="db.cgi?src=db&cn=attachedfile&do=download_file&id=<%primary_key%>&db=<%db%>&fname=<%attachedfile%>">download</a>
<a href="db.cgi?src=db&cn=attachedfile&do=view_file&id=<%primary_key%>&db=<%db%>&fname=<%attachedfile%>">view</a>
<input type=checkbox name="attachedfile_del" value="delete"> Delete<BR>
<%endif%>
<input type=file name="attachedfile">
......
I think I found a problem in the dbman sql
When I try to modify a record, I canīt upload a new file, it always get the diretory in my pc instead of uploading the file, even with the default template
I used this code below to do a customized add / modify form, and the delete file is working, the add is working, the only thing that doesnīt work is the file upload in the modify form.
The error that I get when /i try to view the file
A fatal error has occured:
Dbsql::Home (9060): Error Viewing File at /home/veiculos/public_html/cgi-bin/db/admin/GT/Plugins.pm line 165.
Please enable debugging in setup for more details.
...
<form name="myform" action="db.cgi" method=post <%if enctype%><%enctype%><%endif%>>
<%if attachedfile%>
<a href="db.cgi?src=db&cn=attachedfile&do=download_file&id=<%primary_key%>&db=<%db%>&fname=<%attachedfile%>">download</a>
<a href="db.cgi?src=db&cn=attachedfile&do=view_file&id=<%primary_key%>&db=<%db%>&fname=<%attachedfile%>">view</a>
<input type=checkbox name="attachedfile_del" value="delete"> Delete<BR>
<%endif%>
<input type=file name="attachedfile">
......