similar to: Custom Mime Types with Templates

Displaying 20 results from an estimated 70000 matches similar to: "Custom Mime Types with Templates"

2008 Jan 16
0
respond_to, mime types and excel
Hello All, I''m trying to figure out how respond_to actually works, especially with the increased focus on REST. After I set a MIME type for Excel Mime::Type.register "application/vnd.ms-excel", :xls In my index action''s respond_to block I have format.xls { @parts = Part.find(:all) headers[''Content-Type''] =
2006 Jun 08
0
custom mime types for respond_to
Is there a way to add a mime type of my own to respond_to ? There''s html, xml, js, ical etc ... But I want to be able to respond_to Excel. Excel has the following content-type header: application/vnd.ms-excel I want to use the new ?format=xml querystring parameters that respond_to can respond to. So I want to pass in ?format=xsl or ?format=ms-excel so that I can return my results
2007 Sep 01
0
Problem with custom Mime::Type.register.
Hello all, I''m running into a slight problem with Rails and the respond_to function in controllers. I''ve registered a custom Mime::Type of application/x-amf :amf (Mime::Type.register "application/x-amf", :amf). The problem I''m having is that the respond_to function never responds to the application/x-amf content-type. I think I''ve narrowed it down to
2005 May 05
1
Starting Linux apps from Windows app (was: Re: wine & mime types)
Hi Rainer, > i have running lotus notes under wine on my redhat 9 system. So am I, since year 2001 ;) > what i want is, to define which application should be started for > which attachment type. so for microsoft attachments i want to start > my linux version of open office and for pdf files i want also to start > my linux version of acrobat reader or xpdf! > > so, where
2006 Mar 28
0
~/.mime.types - format conflict with standard /etc/mime.types?
Hi, It seems that wine (or rather cxoffice) installs a non-standard ~/.mime.types file, and that makes other programs (e.g. lynx) die. Is there a bug here? Whose? Its format differs from /etc/mime.types (from the mime-support package on debian etch): # Users can add their own types if they wish by creating a ".mime.types" # file in their home directory. Definitions included
2004 Aug 06
0
WinAMP POS: mime types
The problem with WinAMP 3 is that it will accept only ogg data with the old MIME type "application/x-ogg", but current icecast sources emit the new and correct mime type "application-ogg". WinAMP must reject the ogg data because it didn't match the MIME type it expected, so yes, it just sits there prebuffering, and prebuffering, and prebuffering... I fixed this by
2005 Mar 11
2
Creating Custom System Policy Templates
Has anyone looked into creating custom templates for Microsoft's System Policy editor ? I like the idea of managing workstations through the NTConfig.POL file, but the included templates are quite a bit outdated. Does anyone know if it would be worth-while to take the time and create an updated Template to add policies to manage newer features of Windows 2000/XP through the NTConfig.POL
2019 Jan 15
0
Solved: Sieve: reject certain mime-types and notify recipient
I case someone is interesed too, why it was not working: Am 14.01.19 um 20:22 schrieb Ralf Becker: > I have to reject office files for a certain domain plus notifying the > original recipient about the rejection too. > > require ["fileinto","reject","body","enotify","variables"]; > > if allof (address :contains
2007 Aug 28
1
Clarification on MIME types
Just an important detail that I must be sure of before I continue to draft the RFC I'm working on, as well as going to IANA later. What makes more sense? audio/ogg for Ogg FLAC, Speex, Vorbis, Ghost with a disposition type thrown in in the mix? Or audio/ogg+flac, audio/ogg+speex, audio/ogg+vorbis, etc? Let's call the latter the XHTML approach. It would force us to register a new MIME
2001 Nov 28
2
Mime types
Hello, Does anyone know how to configure the mime type for ogg on Apache (on a FreeBSD box)? I added application/x-ogg to the mime.types file in Apache, but Nutscrape6.2 and Mozilla 0.9.5 just show the file in txt format, IE5x on the other hand kindly asks me what to do with the file (open it or download it). I also added the mime-type in Nutscrape62 and Mozilla and added Winamp as helper app
2007 Jun 14
6
Revisiting mime-types and file extensions
Hi, I'm in the process of adding support for Markdown to a minimal CMS in Rails, [Railfrog][railfrog], which uses mime types to select appropriate processing. I have had a look through the archives but have not been able to see that a consensus has emerged as to what such a mime type for Markdown should look like. My reading of the RFCs suggests that it should be within the "text/*"
2004 Aug 06
2
WinAMP POS: mime types
At 01:25 PM 6/3/2003 -0600, you wrote: >The problem with WinAMP 3 is that it will accept only ogg >data with the old MIME type "application/x-ogg", but current >icecast sources emit the new and correct mime type >"application-ogg". WinAMP must reject the ogg data because >it didn't match the MIME type it expected, so yes, it just >sits there prebuffering,
2009 Jun 12
1
Adjusting Mime types for files with extensions .R or .Rout
I'm not sure if this is a Debian/Ubuntu question related to R or a Gmail question related to R so I thought I would start with this mailing list. I often wish to email R scripts and the result of a R CMD BATCH run of the script. I wish them to be enclosures of mime type text/plain so they are easier to handle and so they can be included in the archives of mailing lists. I use the web
2007 Feb 26
2
Problem concerning CSV Mime Type
Hello, I have an application that should be able to export a list of users as CSV. So I put Mime::Type.register "text/csv", :csv into my environment.rb, and added this code to my UserController''s index action: format.csv do require ''csv'' CSV::Writer.generate(csv_string = "", '','') do |csv| csv
2006 Jul 31
0
Rest and Mime Types
Been thinking about something lately and wanted to hear what others thought. After watching the video[1] of DHH with the slides[2] I really liked some of the ideas presented. Many people have noted the ugliness of needing secondary actions since HTTP actions do not cover the full range of CRUDness (i.e. the "GET /people;new" and "GET /people/1;edit"). Also the need for
2007 Mar 28
2
Cups issue - keeps re-writing cupsd.conf and mime.types
Hi, My Centos 4.4 server at home is serving a Samsung SCX-4521F printer, which the *nix and Win clients connect to through ipp. Every so often (maybe once a month), the cupsd.conf and mime.types files are updated, which makes the printer unavailable to the clients. My fix so far has been to stop cups, overwrite the files with cupsd.conf.working and mime.types.working (these are backup files of the
2007 Nov 19
2
After last update problems with MIME-Types (Postfix, amavisd)
Hi Folks, after the last update I get this error in my maillog: Error in processing, id=05622-06, mime_decode-1 FAILED: Can't locate object method "seek" via package "File:: Temp" at /usr/lib/perl5/vendor_perl/5.8.8/MIME/Parser.pm line 816, <GEN19> line 109. (in reply to end of DATA command)) Are there some problems with the perl-packages from rpmforge???? How
2006 Mar 30
4
ActionMailer e-mails getting tagged as junk in Outlook 2003
Whenever an email is sent via ActionMailer, and the recipient is using Outlook 2003 (with SP2 installed), the e-mail is getting put in the junk e-mail folder. Since Outlook doesn''t give a reason it was tagged as junk, it''s hard to determine what to change. I''ve compared the message headers of the "junk" mail and a valid email sent through Outlook, and the
2005 Sep 29
1
OpenOffice MIME types not working on Centos 4
Hi. I have a problem with OpenOffice MIME types on Centos 4 when using KDE, it seems that konqueror does not recognize the file extensions. Gnome works fine. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20050929/c735b188/attachment.html>
2006 Mar 01
1
Associating mime.types to applications
Can someone please tell me the filename where I can associate mime.types to applications.