Update of /cvsroot/sandweb/sandweb/templates
In directory usw-pr-cvs1:/tmp/cvs-serv29745/templates
Modified Files:
view_file.html
Log Message:
file download is still broken, but it at least detects the proper
mime type and asks if you want to download it.. :)
hmm.. both download and upload should be public methods in
the File class, that'd be rad. Then we could just do like -
my $file = SandWeb::File->new( filename => "/this/file.txt" );
$file->download();
of
$file->upload();
if it was a new file. Rad.
Index: view_file.html
===================================================================
RCS file: /cvsroot/sandweb/sandweb/templates/view_file.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -U2 -r1.7 -r1.8
--- view_file.html 2001/11/30 20:31:42 1.7
+++ view_file.html 2001/12/20 23:05:58 1.8
@@ -2,5 +2,7 @@
<TMPL_VAR NAME=FILENAME>
<form submit="<TMPL_VAR NAME=PROGNAME>">
- <input type="submit" name="view_method" value="Download" />
+ <input type="hidden" name="action" value="file" />
+ <input type="submit" name="file_command" value="download" />
+ <input type="hidden" name="filename" value="<TMPL_VAR NAME=FILENAME>" />
<TMPL_VAR NAME=ERROR>
<pre> <TMPL_VAR NAME=CONTENT></pre>
|