Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:32:00+00:00 2026-06-02T16:32:00+00:00

I am able to get most file MIME types by checking the file in

  • 0

I am able to get most file MIME types by checking the file in a HTML file element, however when choosing a .tgz file I do not get a type.

Here is a jsfiddle showing the file type when a file is selected from the HTML file input: http://jsfiddle.net/chrisabrams/cTJKf/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:32:00+00:00Added an answer on June 2, 2026 at 4:32 pm

    According to the spec it’s up to the browser to attempt to determine the content-type and if it fails, it should return an empty string.

    type

    The ASCII-encoded string in lower case representing the media type of
    the Blob, expressed as an RFC2046 MIME type [RFC2046]. On getting,
    conforming user agents MUST return the MIME type of the Blob, if it is
    known. If conforming user agents cannot determine the media type of
    the Blob, they MUST return the empty string.
    A string is a valid MIME
    type if it matches the media-type token defined in section 3.7 “Media
    Types” of RFC 2616 [HTTP].

    So whatever browser you’re using doesn’t recognise what a .tgz file is – this could vary both per-browser and also per-operating-system however.

    I’m using Opera on Linux and it recognises .tgz but – for example – doesn’t recognise .xcf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not able to get the HTML source code when I try to
I am not able to get the value of dictionary at Django-template. Take a
I am able to get all images from sdcard,but I want to show file
I'm not able to get CSS property margin-top to work consistently across all broswers
I am not able to get username and password values that I am entering
I'm working on my first iPhone app and have been able to get most
Here is my actual error: No route matches [GET] /members/sign_out Since most people will
Has anyone been able to get a variable record length text file (CSV) into
I'm currently able to get this to do most of what I want to.
Im able to get id, src, style or whatever with: $(document).click(function (e) { console.log('id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.