Unable to open html file in document library without saving first

I've uploaded a bunch of HTML files from a DVD to a document library on our Sharepoint 2013 Enterprise server. When I try to open one of the html files it wants to save the file instead of opening it. If I choose to open the document library in Explorer
I'm able to open the html files w/o issue.
What's causing this? I know there is an option to set the file handing to permissive, but I'd rather not do that.

Carl,
See this link - http://sharepoint.stackexchange.com/questions/39020/how-do-i-prevent-sharepoint-from-asking-to-download-html-files-to-my-local-machi
The allowed mime types are defined in theSPWebApplication.AllowedInlineDownloadedMimeTypes
Property
Here is small PowerShell utility function I use:
function Add-SPAllowedInlineDownloadedMimeType{
[CmdLetBinding()]
param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipeLine=$true)]
[Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind]$WebApplication,
[Parameter(Mandatory=$true, Position=1)]
[string]$MimeType
process{
$actualWebApp = $WebApplication.Read()
if ($actualWebApp.AllowedInlineDownloadedMimeTypes -notcontains $mimetype)
Write-Host "Adding MIME Type..."
$actualWebApp.AllowedInlineDownloadedMimeTypes.Add($mimetype)
$actualWebApp.Update()
Write-Host "Done."
} Else {
Write-Host -ForegroundColor Green "MIME type is already added."
And it can be used like this:
Add-SPAllowedInlineDownloadedMimeType -WebApplication http://mywebapp -MimeType "text/html"
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

Similar Messages

  • Unable to add aspx file to document library using REST and JSOM in SharePoint Hosted App

    Hi,
    I am unable to add an aspx file to document library.  I was actually trying to create a WIKI page and upload to Pages library but that wasn't working so I tried simple document library.  It keeps failing with Access Denied error.  I have checked
    the blocked types and aspx is not included.  I can upload it directly from the browser so that shouldn't be the case.  I have read that it can be achieved with CSOM but I need this to work with a SharePoint Hosted App.  Here is my JSOM:
    factory = new SP.ProxyWebRequestExecutorFactory(appweburl);
        context.set_webRequestExecutorFactory(factory);
        appContextSite = new SP.AppContextSite(context, hostweburl);
        oWeb = appContextSite.get_web();
        oList = oWeb.get_lists().getByTitle('Documents');
        fileCreateInfo = new SP.FileCreationInformation();
        fileCreateInfo.set_url("mywiki.aspx");
        fileCreateInfo.set_content(new SP.Base64EncodedByteArray());
        fileContent = "<%@ Page Inherits=\"Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c\" %> <%@ Reference VirtualPath=\"~TemplatePageUrl\"
    %> <%@ Reference VirtualPath=\"~masterurl/custom.master\" %>";
        for (var i = 0; i < fileContent.length; i++) {
            fileCreateInfo.get_content().append(fileContent.charCodeAt(i));
        newFile = oList.get_rootFolder().get_files().add(fileCreateInfo);
        context.load(newFile);
        context.executeQueryAsync(function () {
            alert('yo');
        }, function (sender, args) {
            alert(args.get_message() + '\n' + args.get_stackTrace());
    If I change the file extension to "txt", it works.  Same with REST implementation, it works with "txt" but fails with "aspx".  Maybe what I am trying to do will not work using JSOM or REST.  Any suggestions?  Your
    help is always appreciated.
    Regards,
    kashif

    Your code works fine in both my on-premises and SharePoint Online. I have given the app full control, so I suspect this is a permissions issue. I would check your permissions on your appmanifest. Must be something to do with publishing permissions. Try
    giving full control and work the permissions down.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Unable to open HTML files

    Does anyone know why Dreamweaver is not letting me view my
    HTML & CSS pages on my website?
    •Clarification on what I mean by opening files:
    All files from website are listed in local view, and remote
    view. When I double click on an image it opens up in Photoshop
    (which is perfect). When I double click on any HTML or CSS file
    while in remote or local view, my screen does a quick blink like
    the program attempted to open, and then I see nothing. The file
    doesn't open at all, meaning it doesn't pop up on the screen, I
    can't edit the code or view design view because there is nothing
    that opens within the program.
    •Troubleshooting:
    I removed Dreamweaver from my computer & reinstalled. I
    re-downloaded my files from the remote location, and the same
    glitch happens again where I am unable to open any files in
    Dreamweaver.
    I tried viewing a different website in my internet browser,
    and viewing & saving their code to a file on my desktop. I
    opened this test file from my desktop and it opened within
    Dreamweaver, I could see it in the full form (design & Code
    view).
    I had a friend open up files on my website through his
    Dreamweaver. He was able to see everything, edit files, everything
    was in working order.
    I'd love to edit my CSS, but I'll have to wait until I can
    edit the code through Dreamweaver.
    I appreciate your help!
    Calie

    quick guess- duplicate or recreate this site definition, and
    let dw rebuild
    the cache file for it.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Safari 7.0.5 unable to open html file

    I used to be able to open HTML files in Safari so I can read the content but now it won't let me. Safari 7.0.5. Is there an issue with this version? I am also unable to see some content in our SalesForce app for work. Would a different version of Safari fix this?

    You may have installed "SearchMe" or some other malicious Safari extension.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Remove all extensions with the word "Spigot" in the description. If in doubt, remove all extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.

  • Unable to open project file. even though I just saved it.

    Hi,
    I just started back to work on a little FCE 2 video project after a couple of months. When I went to load the file, it said "Unable to open project file". I thought, "hmmm, I'm a beginner, maybe I'm not opening the right file." So, I made a new project with a clip and save it. Then I tried to reopen it. No go. Same message.
    So, something is wrong but I can't figure it out.
    My preferences are set to save the file on an external hd. The file icon shows up but says that the FCE project file has 0KB. How can that be?
    I look using spotlight for the file, thinking maybe the file was saved elsewhere. It doesn't show up.
    Sorry if this subject has been treated before. I searched the forum and didn't find a problem that matched my circumstances. One that was close.
    Thanks for any help you can give.
    Doug

    Thanks for your reply Kyriakos.
    Yep, I've tried the files in the AutoSave Vault and still Unable to Open Project File.
    Also tried deleting the FCE preference and cache file, fixing permissions and doing a save as instead of a straight save, as outlined in the article below:
    http://www.kenstone.net/fcphomepage/good_apps_gonebad.html
    It only has worked on one project which is the only file that opens now.
    It's driving me nuts! I'm going to start doing some major jobs soon and can't have this happen. Maybe I'll try to reinstall FCE then if no luck it's time for a refund.
    Would upgrading from FCE 1 to HD have anything to do with it?
    Have you had any luck, Doug?
    Pat

  • Unable to open excel file in document list

    I have an excel workbook that reads from several SharePoint lists. I have a group of users (5 to be exact) that are unable to open the excel file when its in the document list, however, when I email them the workbook they can open it and update the pivot
    tables on it (that read from several lists). They were able to open the file in the past and this issue started around 6/20 when office updates were pushed out.
    When they open it they get the following error message:
    Excel Web Access please contact your admin.
    The document list has 20 excel workbooks in it and they can open the other 19 without any issues and 5 of them including the one they can't open connect to the same lists for data.  I even created a test doc library and added the file into it and they
    got the same error message.
    What could be causing this?
    note: we not using excel web services, just uploading workbooks where some connect to lists for data

    Hello,
    Are you opening file in browser? if so please try to open in client by changing the library settings-->advanced settings-->then set client.
    Another thing, what permission are given to both users. Try to provide some higher permission and see the result.
    http://sharepoint.stackexchange.com/questions/37785/excel-web-access-not-disabled
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Open CAD files in Document Library

    I would like to write a small program in Visual Studio 2010 that when a user clicks on a file or maybe selects 'Edit with
    Program Name' in a SharePoint 2010 document library that it will download the file to the users desktop then open it up in the associated program. It will also need to check it out as well.
    Would the OpenDocuments activeX be my best option here to develop with or is there a better method.

    No code needed. You simply need to add a filetype and the appropriate mime handler in IIS.
    Check out Add new file type in SharePoint. The screenshots are in french but you'll get the gist.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Error while opening .PDF files in document library sharepoint 2013

    Hi
    I am getting an error while opening a .pdf file,
    Please help me find the solution.
    Thanks
    Paru

    Launch IE -> Click on Gear (settings) -> Manage Add-ons -> Show: All Add-ons ->
    There are 2 Adobe Add-ons:
    Adobe PDF Reader  &  Adobe Acrobat Sharepoint Open Document
    Double-click both and be sure to click the button "ALLOW ON ALL SITES"
    (An * will appear in the field)
     http://crowdsupport.telstra.com.au/t5/T-Suite-Applications/There-was-an-error-opening-this-document-The-filename-directory/td-p/197425
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ae2eea40-9fa6-46be-bca1-ac5eb5597d5e/sharepoint-2010-adobe-reader-error-opening-pdf-files?forum=sharepointgeneralprevious
    http://community.office365.com/en-us/f/154/t/46204.aspx?PageIndex=2
    disable the Mcafee Firewall Plug In.  This is after of course I ran superantispyware to remove some malware.  uninstalled and reinstalled the Adobe Reade
    https://forums.adobe.com/message/1776202?tstart=0

  • How can I get Firefox to directly open a file (like a torrent) without saving it at all

    It seems that up until about 3 months ago - I could get firefox to download a file and open it directly without saving it to any particular place. This is particulary useful for downloading say a torrent or, for that matter, any other file I wish to use within another program but do not need to save the file.
    Now I have to download the file, chose where it will be saved, open the folder click on the file, and then delete the now un-needed file. A huge hassle.
    I am sure I could do this until a few months ago. For some reason I cannot now.
    Please help

    Make sure that the file has the .html file extension.
    That should be sufficient.
    Windows hides some file extensions by default.
    Among them are .html and .ini and .js and .txt, so you may only see file name without file extension.
    You can see the real file type (file extension) in the properties of the file via the right-click context menu in Windows Explorer.

  • How can i open pdf files from the web without saving them

    Windows 7
    Firefox 5
    Adobe Reader 9
    when i want to see a web based pdf file i have to save it before opening it instead of it just opening in a pdf window.

    You can't.
    Those PDFs are only accessible on the Mac.
    They can not even be accessed by iOS.

  • I am unable to open video files on this website.

    When I click on video links of the following website--http://tubtub.com/--I receive an error message that reads as follows:
    "File not found
    Firefox can't find the file at mms://TITLE.tubtub.com/.
    Check the file name for capitalization or other typing errors.
    Check to see if the file was moved, renamed or deleted.
    Try Again"
    I had initially seen a window that was named "Launch Application," which, seemingly, allowed one to choose an application by which to open the video links. I chose my VLC player to do this and checked a box to associate this "Launch application" window with the VLC player, but received an error message that VLC was unable to open the file that began with an "mms" URL. Then I was never able to get back to that "Launch application" window to select another application, such as Windows Media Player, Real Player, etc. I even tried uninstalling my Firefox browser and the VLC player and reinstalling them both, all to no avail.
    Please explain how I may get these video links to play and the "Launch Application" window to open again. I recall having used TubTub.com successfully before.
    Thank you.

    Hi mendcocr,
    Please see this document about configuring web browsers to display PDF files: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html.
    Please let us know if you need additional help.
    Best,
    Sara

  • ERROR: Unable to open TUXCONFIG file

    Hi,
    I installed and installed the following software successfully on Windows XP
    Oracle WebLogic Server 11gR1 (10.3.1) Microsoft Windows
    PeopleSoft Enterprise PeopleTools 8.50
    PeopleSoft Enterprise Human Resources Management System 9.1 - Revision 2
    Tuxedo 10gR3 for MS Windows Server 2003 w/MS VS 2005 (32-bit x86, AMD64/EM64T x64) 32-bit
    i am at the point of installing the Application Server. Domain created sucessfully but i got boot errors as shown below.
    I searched for the TUXCONFIG file but could not find it in the tuxedo installation folder.
    I read that i have to create the TUXCONFIG,if missing, using tmloadcf.exe and the ubbconfig file, but the only UBBCONFIG file is located in "\samples\atmi\rpcsimp\" folder.
    How do i create the TUXCONFIG file?
    Did i miss something with the installation? What location should this file exist after your tuxedo installation?
    thanks
    K
    BOOT ERRORS:
    PeopleSoft Domain Boot Menu
    Domain Name: hrms
    1) Boot (Serial Boot)
    2) Parallel Boot
    q) Quit
    Command to execute (1-2, q) [q]: 1
    Attempting to boot bulletin board...
    tmadmin - Copyright (c) 2007-2008 Oracle.
    Portions * Copyright 1986-1997 RSA Data Security, Inc.
    All Rights Reserved.
    Distributed under license by Oracle.
    Tuxedo is a registered trademark.
    No bulletin board exists. Entering boot mode.
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:1519: ERROR: TUXCONFIG value (C:\Documents an
    d Settings\klondon\psft\pt\8.50\appserv\hrms\PSTUXCFG) is longer than the allowed length of 64
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:588: ERROR: Unable to open TUXCONFIG file
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:6272: ERROR: Unable to get bulletin board par
    ameters
    115818.SU1491!tmboot.2652.1488.-2: CMDTUX_CAT:825: ERROR: Process PSWATCHSRV at SU1491 failed w
    ith /T tperrno (TPESYSTEM - internal system error)
    115818.SU1491!tmboot.2652.1488.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; init
    iating user error handler
    115821.SU1491!BBL.2956.4352.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
    115825.SU1491!PSADMIN.3088: End boot attempt on domain hrms
    Edited by: user2932595 on Apr 17, 2010 1:17 PM
    Edited by: user2932595 on Apr 17, 2010 1:21 PM

    Hi
    The TUXCONFIG file normally is created automatically when you create your domain.
    In this case I think you ran into trouble because the path of installation is too long!
    Note the error in your log:
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:1519: ERROR: TUXCONFIG value (C:\Documents and Settings\klondon\psft\pt\8.50\appserv\hrms\PSTUXCFG) is longer than the allowed length of 64
    Your path is 69 chars long!
    I would suggest that you re-try the configuration with a shorter tuxedo and PS_HOME: perhaps in the root directory (c:\PSHOME)
    In the past I've also noticed that installations have problems with paths that have spaces - ex: 'Documents and settings' , so I would avoid that as well.
    Edited by: Alternate on Apr 19, 2010 2:00 AM

  • Unable to open pst file error details access to the path is denied

    Hello,
    iam trying to do a mailboximport-request from a QNAP-nas that is member of the domain.
    When doing the mailboximport i am getting the following error : unable to open pst file error details access to the path is denied.
    Which permissions do i need to have on the folder/file on the qnap to import the .pst-file?
    Thx

    Move your PST files to a windows server.  Exchange Trusted Subsystem is a universal group in Active Directory.
    Read more here: http://technet.microsoft.com/en-us/library/ee633455(v=exchg.141).aspx#Pre
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • "Unable to Open Project File" - error

    Does anyone know how to resolve an "Unable to Open Project File" - error. I accidentally shut down my computer wrong, although Final Cut wasn't open.

    Welcome to the forums.
    The project file might have gotten corrupted. Look for the AUTOSAVE VAULT (typically in the DOCUMENTS>FINAL CUT PRO DOCUMENTS folder) and open the most recent version. Copy it to your main project folder if it works.
    If not, then try trashing your prefs with FCP Rescue.
    Shane

  • The way SharePoint open office documents will differ if the user try to open them from the document library directly, or if users try to open the document from the search result page.

    I have a document library where I have uploaded an excel sheet to it. Now If I click on the excel sheet directly from the document library page , I will get the following error ““The webpage cannot be displayed””. While if I do a search and I open the excel
    sheet from the search result page , it will open the excel sheet using the excel services inside the browser !!.
    So can anyone advice on this ?
    Also if I have a PowerPoint document , and I try to open it from the document library I will get the following error “The webpage cannot be displayed” , and the URL will be prefix with the following “ms-powerpoint:ofv|u|”. while if i do a search and i open
    the PowerPoint from the search result page i will be prompted to either open or save the document ? So why SharePoint is reacting totally different when trying to open document library items from the document library Or from the search result page?

    Hi,
    The behavior in the document library could be probably because of the Documents handling setting. Please try setting it to default behavior (Open in browser) as i hear from you that the default behavior is to open from browser.
    Thanks, Suneetha
    Currently I have set the following;-
    1. On the library advance setting :- I define  “Open in the client application”
    2. On the web application setting:- I define stricked for Browser File Handling
    And I have noted if I delete the browser cache and I access the document , then I will be prompted with the download dialog. but if I re-click on the same document I will be redirected to the
    The webpage cannot be displayed
    And the ms-powerpoint:ofv|u| will be added to the beginning of the URL. So could this be a caching problem ?

Maybe you are looking for

  • Reg : smartform in abap-hr

    hi , In hr-abap we have the smartforms i.e hrforms i got the standard smartform... SAP_PAYSLIP_US ... is this smartform wat we use is same as in abap... smartform or different.. also i need the information related to this smartform SAP_PAYSLIP_US.. a

  • This extension cannot be installed, it requires Photoshop32........

    I have a client who is trying to install my extension panels into Photoshop CS6. In the ZXP file there are two panels that are suppose to get installed. Only one gets installed. Both panels were created with Configurator 4 and were packaged together

  • Can I simultaneously save a form as a PDF and export to Excel?

    Can I simultaneously save a form as a PDF and export to Excel?

  • Bursting Excel file

    Hi guys here is my problem, i have a report that produces xml result which calls the bursting engine to send it out. My report and also bursting program works perfectly however when i change the output-type in the bursting control file from pdf to ex

  • Lotus Notes Compatability

    The email invitation button does not function with Lotus Notes as my default mail handler. I am using LN 7.0.2. Any suggestions on how to fix it?