Re: File/App associations for attachments, posted by Evinrude Motor on Thu Aug 24 17:21:06 2023
|
so now that you have pointed me in the right direction let me hack on it a bit to see what works .
Stefan Ritt wrote: |
Below are the MIME types hard-coded into elogd. As you can see there is neither .ods nor .eml. If you give me the MIME type, I can add that easily. I wonder however why both work differently for you. I believe this is a browser setting.
Stefan
struct FILETYPE {
char ext[32];
char type[80];
} filetype[] = {
{".AI", "application/postscript"},
{".ASC", "text/plain"},
{".BZ2", "application/x-bzip2"},
{".CFG", "text/plain"},
{".CHRT", "application/x-kchart"},
{".CONF", "text/plain"},
{".CSH", "application/x-csh"},
{".CSS", "text/css"},
{".DOC", "application/msword"},
{".DVI", "application/x-dvi"},
{".EPS", "application/postscript"},
{".GIF", "image/gif"},
{".GZ", "application/x-gzip"},
{".HTM", "text/html"},
{".HTML", "text/html"},
{".ICO", "image/x-icon"},
{".JPEG", "image/jpeg"},
{".JPG", "image/jpeg"},
{".JS", "application/x-javascript"},
{".KPR", "application/x-kpresenter"},
{".KSP", "application/x-kspread"},
{".KWD", "application/x-kword"},
{".MP3", "audio/mpeg"},
{".OGG", "application/x-ogg"},
{".PDF", "application/pdf"},
{".PNG", "image/png"},
{".PS", "application/postscript"},
{".RAM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RPM", "application/x-rpm"},
{".RTF", "application/rtf"},
{".SH", "application/x-sh"},
{".SVG", "image/svg+xml"},
{".TAR", "application/x-tar"},
{".TCL", "application/x-tcl"},
{".TEX", "application/x-tex"},
{".TGZ", "application/x-gzip"},
{".TIF", "image/tiff"},
{".TIFF", "image/tiff"},
{".TXT", "text/plain"},
{".WAV", "audio/x-wav"},
{".XLS", "application/x-msexcel"},
{".XML", "text/xml"},
{".XSL", "text/xml"},
{".ZIP", "application/x-zip-compressed"},
/* Open XML file types */
{".DOCM", "application/vnd.ms-word.document.macroEnabled.12"},
{".DOCX", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
{".DOTM", "application/vnd.ms-word.template.macroEnabled.12"},
{".DOTX", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"},
{".PPSM", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"},
{".PPSX", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"},
{".PPTM", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"},
{".PPTX", "application/vnd.openxmlformats-officedocument.presentationml.presentation"},
{".XLSB", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"},
{".XLSM", "application/vnd.ms-excel.sheet.macroEnabled.12"},
{".XLSX", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
{".XPS", "application/vnd.ms-xpsdocument"},
{"", ""},
};
|
|
Re: File/App associations for attachments, posted by Evinrude Motor on Thu Aug 24 19:22:01 2023
|
I gave it a shot with no luck
On my client (Kubuntu) an ".eml" is associated with mime type "message/rfc822" . Just adding this to the list seemed to have no effect so there must be more to it than that :}
Stefan Ritt wrote: |
Below are the MIME types hard-coded into elogd. As you can see there is neither .ods nor .eml. If you give me the MIME type, I can add that easily. I wonder however why both work differently for you. I believe this is a browser setting.
Stefan
struct FILETYPE {
char ext[32];
char type[80];
} filetype[] = {
{".AI", "application/postscript"},
{".ASC", "text/plain"},
{".BZ2", "application/x-bzip2"},
{".CFG", "text/plain"},
{".CHRT", "application/x-kchart"},
{".CONF", "text/plain"},
{".CSH", "application/x-csh"},
{".CSS", "text/css"},
{".DOC", "application/msword"},
{".DVI", "application/x-dvi"},
{".EPS", "application/postscript"},
{".GIF", "image/gif"},
{".GZ", "application/x-gzip"},
{".HTM", "text/html"},
{".HTML", "text/html"},
{".ICO", "image/x-icon"},
{".JPEG", "image/jpeg"},
{".JPG", "image/jpeg"},
{".JS", "application/x-javascript"},
{".KPR", "application/x-kpresenter"},
{".KSP", "application/x-kspread"},
{".KWD", "application/x-kword"},
{".MP3", "audio/mpeg"},
{".OGG", "application/x-ogg"},
{".PDF", "application/pdf"},
{".PNG", "image/png"},
{".PS", "application/postscript"},
{".RAM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RPM", "application/x-rpm"},
{".RTF", "application/rtf"},
{".SH", "application/x-sh"},
{".SVG", "image/svg+xml"},
{".TAR", "application/x-tar"},
{".TCL", "application/x-tcl"},
{".TEX", "application/x-tex"},
{".TGZ", "application/x-gzip"},
{".TIF", "image/tiff"},
{".TIFF", "image/tiff"},
{".TXT", "text/plain"},
{".WAV", "audio/x-wav"},
{".XLS", "application/x-msexcel"},
{".XML", "text/xml"},
{".XSL", "text/xml"},
{".ZIP", "application/x-zip-compressed"},
/* Open XML file types */
{".DOCM", "application/vnd.ms-word.document.macroEnabled.12"},
{".DOCX", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
{".DOTM", "application/vnd.ms-word.template.macroEnabled.12"},
{".DOTX", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"},
{".PPSM", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"},
{".PPSX", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"},
{".PPTM", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"},
{".PPTX", "application/vnd.openxmlformats-officedocument.presentationml.presentation"},
{".XLSB", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"},
{".XLSM", "application/vnd.ms-excel.sheet.macroEnabled.12"},
{".XLSX", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
{".XPS", "application/vnd.ms-xpsdocument"},
{"", ""},
};
|
|
Re: File/App associations for attachments, posted by Evinrude Motor on Thu Aug 24 19:31:03 2023
|
Hold on I'm having a senior moment
Stefan Ritt wrote: |
Below are the MIME types hard-coded into elogd. As you can see there is neither .ods nor .eml. If you give me the MIME type, I can add that easily. I wonder however why both work differently for you. I believe this is a browser setting.
Stefan
struct FILETYPE {
char ext[32];
char type[80];
} filetype[] = {
{".AI", "application/postscript"},
{".ASC", "text/plain"},
{".BZ2", "application/x-bzip2"},
{".CFG", "text/plain"},
{".CHRT", "application/x-kchart"},
{".CONF", "text/plain"},
{".CSH", "application/x-csh"},
{".CSS", "text/css"},
{".DOC", "application/msword"},
{".DVI", "application/x-dvi"},
{".EPS", "application/postscript"},
{".GIF", "image/gif"},
{".GZ", "application/x-gzip"},
{".HTM", "text/html"},
{".HTML", "text/html"},
{".ICO", "image/x-icon"},
{".JPEG", "image/jpeg"},
{".JPG", "image/jpeg"},
{".JS", "application/x-javascript"},
{".KPR", "application/x-kpresenter"},
{".KSP", "application/x-kspread"},
{".KWD", "application/x-kword"},
{".MP3", "audio/mpeg"},
{".OGG", "application/x-ogg"},
{".PDF", "application/pdf"},
{".PNG", "image/png"},
{".PS", "application/postscript"},
{".RAM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RPM", "application/x-rpm"},
{".RTF", "application/rtf"},
{".SH", "application/x-sh"},
{".SVG", "image/svg+xml"},
{".TAR", "application/x-tar"},
{".TCL", "application/x-tcl"},
{".TEX", "application/x-tex"},
{".TGZ", "application/x-gzip"},
{".TIF", "image/tiff"},
{".TIFF", "image/tiff"},
{".TXT", "text/plain"},
{".WAV", "audio/x-wav"},
{".XLS", "application/x-msexcel"},
{".XML", "text/xml"},
{".XSL", "text/xml"},
{".ZIP", "application/x-zip-compressed"},
/* Open XML file types */
{".DOCM", "application/vnd.ms-word.document.macroEnabled.12"},
{".DOCX", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
{".DOTM", "application/vnd.ms-word.template.macroEnabled.12"},
{".DOTX", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"},
{".PPSM", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"},
{".PPSX", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"},
{".PPTM", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"},
{".PPTX", "application/vnd.openxmlformats-officedocument.presentationml.presentation"},
{".XLSB", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"},
{".XLSM", "application/vnd.ms-excel.sheet.macroEnabled.12"},
{".XLSX", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
{".XPS", "application/vnd.ms-xpsdocument"},
{"", ""},
};
|
|
Re: File/App associations for attachments, posted by Evinrude Motor on Thu Aug 24 19:48:06 2023
|
You were correct . This is 100% a browser issue , Thanks for your assistance.
Stefan Ritt wrote: |
Below are the MIME types hard-coded into elogd. As you can see there is neither .ods nor .eml. If you give me the MIME type, I can add that easily. I wonder however why both work differently for you. I believe this is a browser setting.
Stefan
struct FILETYPE {
char ext[32];
char type[80];
} filetype[] = {
{".AI", "application/postscript"},
{".ASC", "text/plain"},
{".BZ2", "application/x-bzip2"},
{".CFG", "text/plain"},
{".CHRT", "application/x-kchart"},
{".CONF", "text/plain"},
{".CSH", "application/x-csh"},
{".CSS", "text/css"},
{".DOC", "application/msword"},
{".DVI", "application/x-dvi"},
{".EPS", "application/postscript"},
{".GIF", "image/gif"},
{".GZ", "application/x-gzip"},
{".HTM", "text/html"},
{".HTML", "text/html"},
{".ICO", "image/x-icon"},
{".JPEG", "image/jpeg"},
{".JPG", "image/jpeg"},
{".JS", "application/x-javascript"},
{".KPR", "application/x-kpresenter"},
{".KSP", "application/x-kspread"},
{".KWD", "application/x-kword"},
{".MP3", "audio/mpeg"},
{".OGG", "application/x-ogg"},
{".PDF", "application/pdf"},
{".PNG", "image/png"},
{".PS", "application/postscript"},
{".RAM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RM", "audio/x-pn-realaudio"},
{".RPM", "application/x-rpm"},
{".RTF", "application/rtf"},
{".SH", "application/x-sh"},
{".SVG", "image/svg+xml"},
{".TAR", "application/x-tar"},
{".TCL", "application/x-tcl"},
{".TEX", "application/x-tex"},
{".TGZ", "application/x-gzip"},
{".TIF", "image/tiff"},
{".TIFF", "image/tiff"},
{".TXT", "text/plain"},
{".WAV", "audio/x-wav"},
{".XLS", "application/x-msexcel"},
{".XML", "text/xml"},
{".XSL", "text/xml"},
{".ZIP", "application/x-zip-compressed"},
/* Open XML file types */
{".DOCM", "application/vnd.ms-word.document.macroEnabled.12"},
{".DOCX", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
{".DOTM", "application/vnd.ms-word.template.macroEnabled.12"},
{".DOTX", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"},
{".PPSM", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"},
{".PPSX", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"},
{".PPTM", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"},
{".PPTX", "application/vnd.openxmlformats-officedocument.presentationml.presentation"},
{".XLSB", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"},
{".XLSM", "application/vnd.ms-excel.sheet.macroEnabled.12"},
{".XLSX", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
{".XPS", "application/vnd.ms-xpsdocument"},
{"", ""},
};
|
|
Filtered browsing, posted by Michael on Fri Oct 6 11:19:34 2023
|
Hi,
is there a trick to get "Filtered browsing" working?
If i am on the first entry and i checked the checkbox of one Attribute, the next entry is still the second one and not the next with the same Attribute. |
link to attachment within html editor, posted by Celeste Torkzaban on Mon Oct 9 10:43:46 2023
|
Hello,
I like the ELcode feature that lets you easily make an internal link to an attachment in the same post. However, I wasn't able to get this to work in the html editor, even though it's possible to use the ELcode format to link to another post in the logbook. When I type in elog :/1 in the html editor (without the space) and submit (even with an attachment present), it weirdly gets changed and shows up as 61/1 in the submitted elog, without any hyperlink. As far as I know we're using the standard elog code and only modified css parameters. Is there another syntax to link to attachments in html?
Testing it out here: 69699/1 (elog :/1 without the space turned into 69699/1) |
Re: link to attachment within html editor, posted by Stefan Ritt on Mon Oct 9 12:30:44 2023
|
You can always insert the full link to the attachment like this one: https://elog.psi.ch/elogs/Forum/231009_104933/SCR14.PNG
But you can also use elog:69699/1 as shown here. Unfortunately you can do that only after the entry has been submitted, so you know the ID number of that entry. Once you have it, edit the entry and put it in.
Stefan
Celeste Torkzaban wrote: |
Hello,
I like the ELcode feature that lets you easily make an internal link to an attachment in the same post. However, I wasn't able to get this to work in the html editor, even though it's possible to use the ELcode format to link to another post in the logbook. When I type in elog :/1 in the html editor (without the space) and submit (even with an attachment present), it weirdly gets changed and shows up as 61/1 in the submitted elog, without any hyperlink. As far as I know we're using the standard elog code and only modified css parameters. Is there another syntax to link to attachments in html?
Testing it out here: 69699/1 (elog :/1 without the space turned into 69699/1)
|
|
Re: link to attachment within html editor, posted by Celeste Torkzaban on Mon Oct 9 16:43:06 2023
|
thank you!
Stefan Ritt wrote: |
You can always insert the full link to the attachment like this one: https://elog.psi.ch/elogs/Forum/231009_104933/SCR14.PNG
But you can also use elog:69699/1 as shown here. Unfortunately you can do that only after the entry has been submitted, so you know the ID number of that entry. Once you have it, edit the entry and put it in.
Stefan
Celeste Torkzaban wrote: |
Hello,
I like the ELcode feature that lets you easily make an internal link to an attachment in the same post. However, I wasn't able to get this to work in the html editor, even though it's possible to use the ELcode format to link to another post in the logbook. When I type in elog :/1 in the html editor (without the space) and submit (even with an attachment present), it weirdly gets changed and shows up as 61/1 in the submitted elog, without any hyperlink. As far as I know we're using the standard elog code and only modified css parameters. Is there another syntax to link to attachments in html?
Testing it out here: 69699/1 (elog :/1 without the space turned into 69699/1)
|
|
|
|