Re: Custom Mime-Types & ERAttachment
Re: Custom Mime-Types & ERAttachment
- Subject: Re: Custom Mime-Types & ERAttachment
- From: Ramsey Gurley <email@hidden>
- Date: Wed, 10 Jun 2015 17:57:49 -0700
It looks hard coded in ERAttachmentIcon. You’d need to fix that or come up with your own icon component.
I was thinking there was some property that allowed you to substitute a web server resource, but it only works with ERXResponseRewriter
er.extensions.ERXResponseRewriter.resource.framework.filename=yourFramework.yourFilename
so that’s no help here.
On Jun 9, 2015, at 9:00 AM, Kevin Hinkson <email@hidden> wrote:
> Hi all,
>
> I was wondering if there was a way to specify the mime-type icons for any custom mime-types added to the ERAttachment list.
>
> Eg: I’ve added the following but there is no recognized icon for them:
>
> #Mime Types
> er.attachment.additionalMimeTypes=application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
>
> er.attachment.mimeType.application/vnd.ms-excel.name=Excel Spreadsheet
> er.attachment.mimeType.application/vnd.ms-excel.uti=com.microsoft.excel.xls
> er.attachment.mimeType.application/vnd.ms-excel.extensions=xls
>
> er.attachment.mimeType.application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.name=Excel 2007 Spreadsheet
> er.attachment.mimeType.application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.uti=com.microsoft.excel.xlsx
> er.attachment.mimeType.application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.extensions=xlsx
>
> I’ve noticed that the included icons are stored in the ERAttachment framework in the icons/size/… folder in the tree. I didn’t see a specific way to override this for custom types.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden