Welcome! Log In Create A New Profile

Advanced
Re: view diff is broken?
avatarNovember 14, 2012 01:09PM
Chris, I think the solution is very simple.
You just need to make sure that the HTTP header sent in the response from the server states the proper MIME type for LDRAW files. The element you need to send back to the client is
the "Content-Type" field in the HTTP response header.
The user can then associate a tool with that MIME type.
As "LDRAW" is of course not part of the official MIME standard, we need to use the "x-" prefix for unofficial file types.
Probably
application/x-ldraw
or
model/x-ldraw
would be something good IMHO.
Alternatively, you could make the URL "appear" as an *.ldr file (instead of *.cgi), so users might,
alternatively to the MIME type, use their normal file associations for opening the result file.
Since the result - as far as I can see - is a mix of both the old and the new version of the file,
probably either *.mpd or *.ldr would be a good file extension to pick; not *.dat

Edited 1 time(s). Last edit at 2012-11-14 02:10PM by Steffen.
SubjectAuthorViewsPosted
view diff is broken? Matthew W. Noel816November 12, 2012 03:00PM
Re: view diff is broken? Steffen303November 12, 2012 03:41PM
Re: view diff is broken? Matthew W. Noel329November 12, 2012 08:42PM
Re: view diff is broken? Chris Dee293November 12, 2012 10:49PM
Re: view diff is broken? Michael Heidemann258November 13, 2012 09:17AM
Re: view diff is broken? Steffen314November 14, 2012 01:09PM
Re: view diff is broken? Chris Dee317November 14, 2012 02:48PM
Re: view diff is broken? Chris Dee284November 14, 2012 03:15PM
Re: view diff is broken? Steffen298November 14, 2012 04:43PM
Re: view diff is broken? Michael Heidemann251November 16, 2012 01:19PM
Re: view diff is broken? Steffen308November 16, 2012 05:06PM
Re: view diff is broken? Michael Heidemann324November 17, 2012 02:01AM
Re: view diff is broken? Michael Heidemann514November 17, 2012 02:04AM
Re: view diff is broken? Michael Heidemann264November 13, 2012 09:09AM
Re: view diff is broken? Matthew W. Noel275November 13, 2012 06:16PM



Sorry, only registered users may post in this forum.

Click here to login