locked
Access mp4 file on windows server 2008 R2 says access denied RRS feed

  • Question

  • User-510697852 posted

    Not sure actually which forum to choose.

    -----------------------

    I have stored some images (.jpg) and videos (.mp4) on windows server 2008 R2.

    When I access website say, http://wbsite public ip/newAudit/auditmultimedia/checklists/2785/0418e263-d722-4a30-999f-fd5c5ff54212.jpg crome shows me the image no problem.

    But when I try to access video same way, http://wbsite public ip/newAudit/auditmultimedia/checklists/2785/test.mp4

    It shows me message, 404 - File or Directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    Images and videos are in same folder. I can access image but not video. I have give fill control to "Everyone" for these directories and files.

    So how can I access .mp4 file on my browser.

    Actually I want to access this video in IOS app on iPad. But I can not play above video in IOS app but I can show image in that same app.

    Thursday, October 4, 2018 3:57 AM

All replies

  • User283571144 posted

    Hi hardeshis,

    As far as I know, the Win Server 2008  doesn't included mp4 as mini type by default. So you should set it in web config or IIS.

    I suggest you could add below config in the web.config.

    <configuration>
        <system.webServer>
            <staticContent>
                <mimeMap fileExtension=".mp4" mimeType="video/mp4" />                   
            </staticContent>
         </system.webServer>
    </configuration>

    Or:

    Find the mini type and add the mp4.

    The mp4 MIME settings are: File name extension: .mp4 MIME type: video/mp4

      

    Best Regards,

    Brando

    Thursday, October 4, 2018 7:14 AM