[Zope] Content Disposition - Download files

2006-06-26 Thread Bruno Grampa
Hello, i want to send an image or a pdf to a browser not for viewing but for downloading. I've written this code: dtml-call RESPONSE.setHeader('Content-type', 'application/force-download') dtml-call RESPONSE.setHeader('Content-Disposition', 'attachment; filename=filename.gif') now i have to send

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Bruno Grampa
Hello, i want to send an image or a pdf to a browser not for viewing but for downloading. I've written this code: dtml-call RESPONSE.setHeader('Content-type', 'application/force-download') dtml-call RESPONSE.setHeader('Content-Disposition', 'attachment; filename=filename.gif') now i have

[Zope] Problem with ExtFile

2006-03-29 Thread Bruno Grampa
Hello, i've a problem with ExtFile 1.4.4 installed in a Zope 2.8.6 (on RHES4). The redirection, at the end of file creation doesn't work. To test the problem you have to create these methods: The first one is called 'form': --- dtml-var standard_html_header form action=write method=post

[Zope] Progress bar for file upload

2006-02-12 Thread Bruno Grampa
Hello, what is the better way to implement a simple progress bar when uploading a file in Zope? Thanks (also for all the answers, hints and tips i've received from this wonderful community in the past times!) Bruno ___ Zope maillist -

[Zope] Javascript rendering problem?

2006-02-01 Thread Bruno Grampa
Hello, i've what i think is a rendering problem checked on Zope 2.8.5 and Zope 2.9 (tried on unix and windows os): download from microsoft website the sdk for Windows Media Center (http://www.microsoft.com/windowsxp/mediacenter/developer/default.mspx). Inside there is a folder called HTML

[Zope] Precondition on images saved in a localfs folder

2006-01-10 Thread Bruno Grampa
Hello, if i upload an image in the ZOBD as a file i have the precondition if i do the same in the localfs folder no. Do you know why? It seems LocalFs will always recognise the file uploaded as an image... Thanks, Bruno ___ Zope maillist -

[Zope] Help me!

2006-01-09 Thread Bruno Grampa
Hello, i'm building a site to sell images (this is the concept, the reality is different...). All the images are in a directory mapped through LocalFS product. For every image i have a record in a SQL table with all the basic informations: author, name of the file, cost. What i haven't