Author Topic: Survex file Mime Types  (Read 1373 times)

Offline bubba

  • Administrator
  • forum hero
  • *****
  • Posts: 2736
Survex file Mime Types
« on: October 09, 2011, 01:53:04 pm »

Can anyone technically minded tell me the Mime Types for .svx and .3d files?

I could do with them to get the Wiki software to allow survey file uploads.

If not, I'll have to bypass checks for these filetypes but I'd rather do things properly.

=:blubba:=

[ nsfw ]

Offline graham

  • Retired
  • forum hero
  • *****
  • Posts: 10943
  • UBSS, Speleo-Club de Perigueux, GSG, SUI
    • UBSS
Re: Survex file Mime Types
« Reply #1 on: October 09, 2011, 02:05:01 pm »
Suggest you ask Ollie or Wookey directly via the Survex list. Wookey comes here sometimes, not sure if Ollie does. Most of us haven't a clue how to find out.
Caving is for Life not just for Christmas

Offline bubba

  • Administrator
  • forum hero
  • *****
  • Posts: 2736
Re: Survex file Mime Types
« Reply #2 on: October 09, 2011, 03:33:28 pm »

Never mind, I installed Survex and checked the registry. There's no Mime Types set so I'll have to get the Wiki to bypass the check for those file types.
=:blubba:=

[ nsfw ]

Offline Duncan

  • addict
  • **
  • Posts: 113
    • http://www.hongmeigui.net/
Re: Survex file Mime Types
« Reply #3 on: October 10, 2011, 10:15:30 am »
According to the file survex.mime, they are:

application/x-survex-svx
application/x-survex-3d

Offline bubba

  • Administrator
  • forum hero
  • *****
  • Posts: 2736
Re: Survex file Mime Types
« Reply #4 on: October 10, 2011, 05:28:02 pm »
Cheers - survex files are just text so I set the mime type to text and the Wiki is happy now.

That info will be handy for the future though  :thumbsup:
=:blubba:=

[ nsfw ]

Offline wookey

  • player
  • **
  • Posts: 105
Re: Survex file Mime Types
« Reply #5 on: November 29, 2011, 02:29:53 am »
The survex.mime file in v1.2 source says:

application/x-survex-svx:        ext: svx
application/x-survex-3d:        ext: 3d
application/x-survex-err:        ext: err
application/x-survex-pos:        ext: pos
application/x-compass-plot:        ext: plf plt
application/x-cmap-xyz:          ext: xyz

.3d files are not just text. by default they are binaries. You can make them text but these days no-one does.