uploads

"Dr. Helmut G. Enders" <[email protected]> Mon, 10 Jan 2005 16:50:52 +0100
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
 > I'm looking  for a working  file upload example for cl-http  ... 190a.
 > I tried some code from the mailing-list, but failed. :-(
 > Helmut

 >>>>>>>>>>>. here is my success in file uploading >>>>>>>>>>>>>.

in the form-function:
  name:   Name of the input-field.
  dir:    Name of the directory, where the uload-file should go.

...
   (format nil "<input type=\"file\"  name=\"~a\">" 
(html2::file-upload-make-query name dir))

in the response-function:

(http-user::bind-query-values  (name)  ; Name holds the pathname to the 
uploaded file.
   (rename-file name "my-new-filename"))



-- 
-----------------------------o-----------------------------
 CS Cybernetic Systems GmbH / Dr. Helmut G. Enders
 Markgrafenstr. 19         / T: +49 9287 9929 11
 D-95100 Selb             / F: +49 9287 9929 32
 Germany                 / E: [email protected]
------------------------o----------------------------------


_______________________________________________
WWW-CL mailing list
[email protected]
http://lists.csail.mit.edu/mailman/listinfo/www-cl