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 8547045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:10:46+00:00 2026-06-11T13:10:46+00:00

I understand that Mobile Safari does not support <input type=file /> . I’d like

  • 0

I understand that Mobile Safari does not support <input type="file" />. I’d like to be able to display some sort of ‘not supported’ information if the user is unable to upload files via my HTML form.

I have looked through this question and although BK’s answer is good, it isn’t conclusive.

Is it perhaps wiser to remove the form based on device width? By that I mean test for device width with @media (max-device-width: 480px) {}. Is this a bad approach? Are there mobile devices on the market that support file uploads directly in the browser?

I know that iOS6 will support media uploads, but it isn’t yet released. Are there others? How about Android? Windows Mobile?

  • 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-11T13:10:47+00:00Added an answer on June 11, 2026 at 1:10 pm

    I just tried this out… and it works…

    Try it yourself! http://fiddle.jshell.net/nmGRu/show/
    (if you find any browsers that fail to report the correct result I’d like to know… ditto for any additional that do work it would help complete this answer)

    Safari (iOS 5 and below) will return false as it does not support file uploads (specifically it lets you add the input, but flags it as disabled)… yet mobile browsers that support it like the Samsung Galaxy Tab (Android), BlackBerry PlayBook / BlackBerry 10 (I’m testing on the Dev Alpha) will return true as their browser does support uploads.

    Correct test results so far:

    • Apple iPhone iOS 5 and below Safari (detects NO support)
    • Apple iPhone iOS 6 Safari (detects support – allows for photo/video selection)
    • Apple iOS 4/iOS 5, jailbroken, Safari Upload Enabler installed (detects support)
    • Apple iPhone w/Chrome (detects NO support)
    • Apple iPhone w/Opera Mini (detects support – allows for photo selection)
    • Android version of Chrome (detects support)
    • Android version of Firefox (detects support)
    • Android version of Opera (detects support)
    • BlackBerry OS7 SmartPhones (detects support)
    • BlackBerry PlayBook (detects support)
    • BlackBerry 10 (Dev Alpha and Z10) (detects support)
    • HTC Desire (detects support)
    • Samsung Galaxy Nexus (detects support)
    • Samsung Galaxy Nexus S (detects support)
    • Samsung Galaxy Nexus 7 Tablet (detects support)
    • Samsung Galaxy Note (detects support)
    • Samsung Galaxy S2 (detects support)
    • Samsung Galaxy S3 (detects support)
    • Samsung Galaxy Tab (detects support)
    • Tizen (detects support)

    Incorrect detection test results so far:

    • Windows Phone {Tango} (detects support, but it does not actually have support)

    Note: I’m working on a revision to this code to solve the detection on windows phone

    Here’s a clean version that just returns a boolean… and doesn’t pollute the page.

    function hasFileUploadSupport(){
      var hasSupport = true;
      try{
        var testFileInput = document.createElement('input');
        testFileInput.type = 'file';
        testFileInput.style.display = 'none';
        document.getElementsByTagName('body')[0].appendChild(testFileInput);
        if(testFileInput.disabled){
          hasSupport = false;
        }
      } catch(ex){
         hasSupport = false;
      } finally {
        if(testFileInput){
          testFileInput.parentNode.removeChild(testFileInput);
        }
      }
      return hasSupport;
    }
    
    alert(hasFileUploadSupport());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

some one in tips and tricks say like this plz i cant understand that
We're working on a .NET MVC mobile site. I understand that on the iPhone,
I understand that in CUDA's memory hierachy, we have things like shared memory, texture
I am writing a mobile application for a django website. i understand that every
I understand that some applications need to check against a server periodically, but why
There are some tables that we want to do a search. I couldn't understand
I understand that: '\n' // literally the backslash character followed by the character for
I understand that JVM and CLR were designed as stack-based virtual machines. When JIT
I understand that the em measurement is a relative unit for font-size, relative to
I understand that this question may be subjective, this is why I need an

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.