Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

uploads: msg#00001

Subject: uploads
> 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: helmut@xxxxxxxxxxxxxxxxxxxxx
------------------------o----------------------------------


_______________________________________________
WWW-CL mailing list
WWW-CL@xxxxxxxxxxxxxxxxxxx
http://lists.csail.mit.edu/mailman/listinfo/www-cl



<Prev in Thread] Current Thread [Next in Thread>