Jump to content

Viewing *.lin files with Firefox


xx1943

Recommended Posts

Hi all

 

I post a lot *.lin-files on my site.

example

If you click on the link browsing IEP the file is opened the BBO-software,

but if you click on the same link browsing with Firefox you get the source-code.

 

I tried to add in the htmlcode type"application/bbolin", but it didn't work.

 

Viewing lin-movies from bbo-hands works fine with firefox

 

Anyone able to help my problem?

 

ty

 

Al

Link to comment
Share on other sites

Can you configure your web server so that it knows to use the right MIME headers for files with the LIN extension?

 

I can't remember exactly how this is done (tho i vaguely remember that on linux/apache there is some file called "magic" or something) , but you can make the web server issue the "application/bbolin" command when it is sending down a LIN file.

 

You want something like this in the HTTP response (not in the actual lin filet is sent back) . You can't add this by simply editing a lin file. You have to configure the web server, or you have to deliver the files via a script that issues the content type and then dumps the file

 

Content-Type: application/bbolin

Link to comment
Share on other sites

This is a tech thing, so you need some tech skills, I fear

 

On one of my (linux) systems, this line, added to /etc/mime.types

 

application/bbolin lin

 

does the trick. If you don't have your own server, I suggest you ask your sysadmin how to associate specific mime types with specific file extensions when serving html documents.

Link to comment
Share on other sites

Try to put a file named: ".htaccess" containing the following line:

 

AddType application/bbolin .lin

 

into the directory containing the lin files or the document root directory of your server.

 

If you have a real "hosting package" and not just some sort of homepage and your provider is using apache, this should work.

Link to comment
Share on other sites

I edited the mimetypes.rdf and added this:

 

 

<RDF:Description RDF:about="urn:mimetype:application/bbolin"

NC:fileExtensions="lin"

NC:description="Bridge Movie"

NC:value="application/bbolin"

NC:editable="true">

<NC:handlerProp RDF:resource="urn:mimetype:handler:application/bbolin"/>

</RDF:Description>

 

Now I can drag and drop a lin-file from my PC into FF, but the link I provided above doesn't work yet.

 

example

 

If I click on this browsing my FF I get the source-code of the lin-file. :(

 

I hate my PC.

 

Al

Link to comment
Share on other sites

Al it is a server issue, not a client one. You defined what FF should do, when it gets the mimetype "application/bbolin" from the server. But if the server is not prepared to do that, the default mimetype is text/html. This is why you see the listing.

 

My hosting provider supports, the ".htaccess" file, chickens provider does not. I know that you have a different provider than both of us, and they (freenet) offer hosting with and without this feature.

 

If you hosting provider is not supporting this, but you can use e.g. PHP-scripts, than it is possible to write a short PHP-script that will deliver the lin-file setting the mimetype manualy.

Link to comment
Share on other sites

however while browsing for the solution i found out, that it is a wanted feature of ff 2.0 for security reasons. i additionally found a 5 pages description how to change something in the sourcecode of ff to allow the direct procedure. i will post the link when i have found it again.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...