From 6e947fef90612905ffc886d3adbf25e07c775716 Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Fri, 2 Jul 2010 01:15:39 -0400 Subject: [PATCH] Comments indicating how to add an attachment field to the bugs form, if it becomes possible to deal with the cgi side in the future. --- collects/meta/web/minis/bugs.rkt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/collects/meta/web/minis/bugs.rkt b/collects/meta/web/minis/bugs.rkt index e1d9a22fe2..77b17adae8 100644 --- a/collects/meta/web/minis/bugs.rkt +++ b/collects/meta/web/minis/bugs.rkt @@ -190,6 +190,7 @@ [(tr) (tr (td title) (td input))] [else (error 'field "internal error")]))) @form[action: bug-report-cgi method: 'post id: 'BugForm + ;; enctype: "multipart/form-data" style: '("border: 2px solid #44f; padding: 6px;" " background-color: #eef;") onsubmit: "return CheckSubmit();"]{ @@ -224,6 +225,10 @@ " reproduce the problem")]{ @textarea[name: 'how-to-repeat rows: 8 cols: 70 style: "font-family: monospace;"]{}} + @; An attachement requires a cgi script that can deal with input + @; that is in "multipart/form-data" format. + @; @field['line "Attachment"]{ + @; @input[type: 'file name: 'attachment size: 20]} @(let* ([c (captcha-file)] [c (and c (img src: (cgi-link c) align: "middle"))]) (and c @field['line @list{Please type @c}]{