<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Georgia">Here's an approach:<br>
      <br>
      1. Create an external directory you want to share<br>
      <br>
      2. Tell seaside where it is:<br>
      | mylib |<br>
      mylib := WAExternalFileLibrary new.<br>
      mylib preferenceAt: #directory put: '/downloadable'.&nbsp;&nbsp;&nbsp; "&lt;---
      absolute path you your directory"<br>
      mylib preferenceAt: #listing put: true.<br>
      WADispatcher default register: mylib at: 'mystuff'<br>
      <br>
      3. Put a link that point to the file you want the user to
      download:<br>
      &nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; url: '/mystuff/filenumber1';<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; type: ( WAMimeType new main: 'text'; sub: 'csv');<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'text for anchor'.<br>
    </font><br>
    <font face="Georgia">4. Or a link that let's them download any file
      in the directory:<br>
      &nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; url: '/mystuff/';<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'text for anchor'.<br>
    </font><br>
    Cheers,<br>
    Bob<br>
    <br>
    On 12/18/10 10:46 AM, alexandre bp wrote:
    <blockquote
      cite="mid:AANLkTimGjswitf=6fPFYUhgXCOKBoZn7C_OixufkMLsR@mail.gmail.com"
      type="cite">
      <div>Thank you for you reply.</div>
      yes but the problem is that I don't understand how to give the
      file to the client from the file library....
      <div>It must be very stupid but I have never done it&nbsp;&nbsp;(even in
        PHP)&nbsp;&nbsp;so I have no clue...</div>
      <meta charset="utf-8">
      <div>cheers&nbsp;</div>
      <div>alex</div>
      <div><br>
        <div class="gmail_quote">2010/12/17 Sean Allen <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:sean@monkeysnatchbanana.com">sean@monkeysnatchbanana.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">You can put downloadable content in a
            file library or serve directly from the file system via the
            webserver w/o going through Seaside.<br>
            <br>
            <div class="gmail_quote">
              <div>
                <div class="h5">On Fri, Dec 17, 2010 at 12:10 PM,
                  alexandre bp <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:abalonpe@ulb.ac.be" target="_blank">abalonpe@ulb.ac.be</a>&gt;</span>
                  wrote:<br>
                </div>
              </div>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                <div>
                  <div class="h5">Hi,
                    <div><br>
                    </div>
                    <div>I'd like to add a downloadable content on my
                      website and I don't have any idea how to do that.&nbsp;</div>
                    <div>I saw the fileUpload method in the
                      WARenderCanvas to upload a file on the server but
                      I don't find anything to download a file from
                      it...</div>
                    <div>Where should I put the downloadable file and
                      how to export it to the computer of the client?</div>
                    <div><br>
                    </div>
                    <div>Thx in advance,</div>
                    <div><br>
                    </div>
                    <div>alex</div>
                    <br>
                  </div>
                </div>
                _______________________________________________<br>
                seaside mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:seaside@lists.squeakfoundation.org"
                  target="_blank">seaside@lists.squeakfoundation.org</a><br>
                <a moz-do-not-send="true"
href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside"
                  target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
                <br>
              </blockquote>
            </div>
            <br>
            <br>
            _______________________________________________<br>
            seaside mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
            <a moz-do-not-send="true"
href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside"
              target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
  </body>
</html>