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. Noel730November 12, 2012 03:00PM
Re: view diff is broken? Steffen274November 12, 2012 03:41PM
Re: view diff is broken? Matthew W. Noel295November 12, 2012 08:42PM
Re: view diff is broken? Chris Dee266November 12, 2012 10:49PM
Re: view diff is broken? Michael Heidemann233November 13, 2012 09:17AM
Re: view diff is broken? Steffen286November 14, 2012 01:09PM
Re: view diff is broken? Chris Dee290November 14, 2012 02:48PM
Re: view diff is broken? Chris Dee257November 14, 2012 03:15PM
Re: view diff is broken? Steffen269November 14, 2012 04:43PM
Re: view diff is broken? Michael Heidemann229November 16, 2012 01:19PM
Re: view diff is broken? Steffen278November 16, 2012 05:06PM
Re: view diff is broken? Michael Heidemann303November 17, 2012 02:01AM
Re: view diff is broken? Michael Heidemann474November 17, 2012 02:04AM
Re: view diff is broken? Michael Heidemann235November 13, 2012 09:09AM
Re: view diff is broken? Matthew W. Noel244November 13, 2012 06:16PM



Sorry, only registered users may post in this forum.

Click here to login