Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Andy] Setup - Thumb Images GD: Edit Log

Here is the list of edits for this post
Re: [Andy] Setup - Thumb Images GD
I believe the reason why it's not working is that the validate forms don't have the enctype attribute set for file uploads (don't know why nobody hasn't run into this previously). This patch to the admin templates should fix it:

Code:
Index: tools_validate.html
===================================================================
RCS file: glinks/cgi/admin/templates/admin/tools_validate.html,v
retrieving revision 1.9
diff -u -r1.9 tools_validate.html
--- tools_validate.html 15 Apr 2005 22:10:11 -0000 1.9
+++ tools_validate.html 13 May 2010 19:33:03 -0000
@@ -90,7 +90,7 @@
<input type="hidden" name="page" value="tools_validate.html">
<input type="hidden" name="mh" value="<%if mh%><%mh%><%else%>5<%endif%>" id="mh">
</form>
-<form action="admin.cgi" method="post" name="valform">
+<form action="admin.cgi" method="post" name="valform" enctype="multipart/form-data">
<input type="hidden" name="do" value="page">
<input type="hidden" name="page" value="tools_validate.html">

Index: tools_validate_changes.html
===================================================================
RCS file: glinks/cgi/admin/templates/admin/tools_validate_changes.html,v
retrieving revision 1.8
diff -u -r1.8 tools_validate_changes.html
--- tools_validate_changes.html 31 May 2006 03:25:12 -0000 1.8
+++ tools_validate_changes.html 13 May 2010 19:33:03 -0000
@@ -93,7 +93,7 @@
<input type="hidden" name="page" value="tools_validate_changes.html">
<input type="hidden" name="mh" value="<%if mh%><%mh%><%else%>5<%endif%>" id="mh">
</form>
-<form action="admin.cgi" method="post" name="valform">
+<form action="admin.cgi" method="post" name="valform" enctype="multipart/form-data">
<input type="hidden" name="do" value="page">
<input type="hidden" name="page" value="tools_validate_changes.html">

Index: tools_validate_reviews.html
===================================================================
RCS file: /cvs/gossamer/glinks/cgi/admin/templates/admin/tools_validate_reviews.html,v
retrieving revision 1.5
diff -u -r1.5 tools_validate_reviews.html
--- tools_validate_reviews.html 15 Apr 2005 22:10:11 -0000 1.5
+++ tools_validate_reviews.html 13 May 2010 19:38:47 -0000
@@ -90,7 +90,7 @@
<input type="hidden" name="page" value="tools_validate_reviews.html">
<input type="hidden" name="mh" value="<%if mh%><%mh%><%else%>5<%endif%>" id="mh">
</form>
-<form action="admin.cgi" method="post" name="valform">
+<form action="admin.cgi" method="post" name="valform" enctype="multipart/form-data">
<input type="hidden" name="do" value="page">
<input type="hidden" name="page" value="tools_validate_reviews.html">

Adrian

Last edited by:

brewt: May 13, 2010, 12:39 PM

Edit Log: