[Zope] file upload problem
Hugo Ramos
Hugo Ramos" <hramos@ruido-visual.pt
Thu, 23 Mar 2000 15:38:24 -0000
yellow,
I've been some code to allow people to feedback and attach file.
I've done a DTML Document (feedback_html):
<dtml-var standard_html_header>
<h2>Manda o teu feedback!</h2>
<form ENCTYPE="multipart/form-data" action=feedback_send>
Subject: <input type=text name=subject size=40>
<p>
Mensagem:<br>
<textarea name=body rows=10 cols=50></textarea>
<p>
<input type="file" name="ficheiro" size="40" value="">
<p>
<input type=submit value="Pontapear o Feedback">
</form>
<dtml-var standard_html_footer>
and a DTML Method (feedback_send):
<dtml-var standard_html_header>
<dtml-sendmail smtphost="mail.ruido-visual.pt">
To: Dep Programação <<dtml-var support>>
From: Form da web <<dtml-var feedback>>
Subject: <dtml-var subject>
<dtml-mime type=text/plain encode=7bit>
<dtml-var body>
<dtml-boundary type=application/octet-stream disposition=attachment
encode=base64 name=ficheiro>
<dtml-var "ficheiro.read()">
</dtml-mime>
</dtml-sendmail>
Obrigado pela tua opinião..
<dtml-var standard_html_footer>
Everything works fine... except that when i receive the email on my email
account I've an attachment with the name I choose!!!
I'dd like to receive it with the real file name... any ideias? (I just can't
find any related documentation)
thanks
--------------------------------------------------------------
Hugo Ramos - hramos@ruido-visual.pt
Ruido Visual