.DWG extension files in SharePoint.

Hi all !!
I am facing a problem in SharePoint 2010 i'e in my document library i uploaded multiple kind of documents, like word, doc, pdf and .DWG  file formats.
except .dwg i aam able to open all the document in the browser on clicking on the document .
but for the .dwg  format it is asking for the download the document , even if i select the read only and then click ok, it asks for download. Amy my requirement is that user can not download the document , he can only see it in read only mode and can
edit.
I have already installed the DWG Viewer.
I am new to the SharePoint, Please any one suggest how to do it ?

Hi atul caet,
Have your tried to add the MIME type of the AutoCAD file to the AllowedInlineDownloadedMimeTypes attribute? This will allow the added types to open within the browser window instead of saving the file to disk first, please refer to the following
article:
http://sharepoint.nauplius.net/2011/06/browser-file-handling-and-avoiding.html
A similar thread:
http://social.technet.microsoft.com/Forums/en-US/sharepointadminprevious/thread/04d8f80e-671c-4919-b708-bec27f23380f
Thanks,
Qiao Wei
TechNet Community Support

Similar Messages

  • Access denied. When trying to upload files into SharePoint with PowerShell

    AM trying to upload a bunch of files into SharePoint using PowerShell. I have a code that works on my local machine, but when I get on the server, it does not. Here is what my block of code looks like
    $webUrl = "http://SampleSite"
    $libraryName = "My Lib"
    $docLibraryUrlName = "My%20ContentType"
    $fileLocation = "C:\test\"
    $contentType = "My ContentType"
    #Open web and library
    $web = Get-SPWeb $webUrl
    $docLibrary = $web.Lists[$libraryName]
    $files = ([System.IO.DirectoryInfo] (Get-Item $fileLocation)).GetFiles()
    ForEach($file in $files)
    #Open file
    $fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
    # Gather the file name
    $FileName = $File.Name
    #remove file extension
    $NewName = [IO.Path]::GetFileNameWithoutExtension($FileName)
    #split the file name by the "-" character
    $FileNameArray = $NewName.split("_")
    #Add file
    #$folder = $web.getfolder($docLibraryUrlName)
    $folder = $web.getfolder($docLibrary)
    write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
    $spFile = $folder.Files.Add($folder.Url + "/" + $File.Name, $fileStream, $true)
    $spItem = $spFile.Item
    #populate metadata
    $spItem["First Column"] = $FileNameArray[0]
    $spItem["Second Column"] = $FileNameArray[1]
    $spItem.Update()
    $fileStream.Close();
    Again, this code works fine on my local machine but doesn't when I move this to the server. When I step through the code, I noticed that when I look at the data returned for my $folder variable in this snippet
    $folder = $web.getfolder($docLibrary)
    It shows the EffectiveRawPermissions to be "Open, BrowseUserInfo, UserClientIntegration" on the server...however, the EffectiveRawPermissions on my local machine is "FullMask". Does this have any effect on the ability of my code to be
    able to upload the files into SP on the server? I have never run into this issue, so am not sure how this makes sense...so I really appreciate any insight. Thanks
    I am getting this error when the code attempts to perform the "Add" function...
    Exception calling "Add" with "3" argument(s): "<nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied."
    At C:\PowerShellScripts\tester.ps1:70 char:3
    +         $spFile = $folder.Files.Add($folder.Url + "/" + $File.Name, $fileStream, $true ...
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : UnauthorizedAccessException
     ...Please help

    RunWithElevatedPriv basically impersonates the webapp's app pool account, which should have full control over the entire webapp... this would work, but is not recommended for several reasons:
    - first and foremost, you shouldn't NEED to bypass the SP security model
    - second and still important, the app pool may be hosting other webapps as well, so the risk of a bug causing security-related problems within the RunWithElev codeblock is no longer scoped to the current webapp, but also other webapps that share the same
    app pool account.
    - third, same as number two, but for service accounts, and possibly even the farm... not a good practice, but a lot of SP installs aren't configured correctly, so the entire farm may be using one account... now, the RunWithElev is not just a webapp admin,
    not just a multiple webapp admin, but may be able to affect service apps, or possibly the entire farm.
    - fourth, the audit info (created by, modified by) will reference the system account, instead of your account... not a very accurate audit trail in that case.
    If you have a legit need to add the files, you should be able to get the necessary permissions (which is basically just contribute within the library / folder) easily enough.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Can't open MS Word .doc files from SharePoint 2013 document library?

    Hello,
    I have uploaded some MS Word files with .doc extension into a SharePoint 2013 document library, but they don't open when clicked.  I can do a number of things to the file, like view and edit properties, download and other things, but it does not
    open up when mouse clicked.  There are PDF files in the document library and they open up just fine.  Any ideas?
    I should add that MS Word 2010 .docx files can not be opened either.
    Thanks.
    Paul

    Hi,
    Whether you use office 2013.
    Considering this .doc file can be smoothly opened in Office if you downloaded it to your local, it indicates that the Word document and Microsoft Word doesn’t have any problems. The issue may be caused by the compatibility between Office
    and your site.
    1.Check whether you have the SharePoint OpenDocuments Class add on enabled at first.
    Internet Explorer >Tools iron > Manage add-ons >
    Choose to Show All add-ons. Find SharePoint OpenDocuments Class and make sure it’s enabled.
    2.go to Compatibility view settings > add your SharePoint site to compatibility view
    3.go to Internet Options,
    Advanced > Reset… > Check Delete personal settings and reset
    Security > Trusted sites > sites > add SharePoint sites to trusted sites
    4.If it doesn’t work, please open Word, go to Options > Trust Center > Trust Center Settings > Protected View > Uncheck all.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Dynamically update swf file in sharepoint using xml data

    Hi,
    I need some help/enlightenment on how to auto-update the swf file in sharepoint using xml data.
    I am encountering an error "Cannot access External Data" and pointing to adobe's Cross-domain policy file extension.
    My questions is:
    1. Where should the cross-domain file be copied? In the sharepoint webserver's root folder?
    Right now, we generate the swf file from xcelsius and manually upload them in the sharepoint. However, we wish to automate the data content of this file.
    Thanks for the help.
    Emerson

    GetFileByServerRelativeUrl.... since you're getting a FILE, you'll need a URL to a FILE (not just a library)... by SERVER relative URL, so you'll need to include the site collection path and such, not just the subsite relative URL.
    Now working fine....
    url: appweburl + "/_api/SP.AppContextSite(@target)/web/ GetFileByServerRelativeUrl('/sites/apps/Shared Documents/test.txt')/CheckOut()?@target='" + hostweburl + "'",
            method: "POST",
            data: metatdata,

  • Linked Excel files on Sharepoint Online

    Has anyone found a work around to having linked excel files on SharePoint Online?
    Right now in all my tests, SharePoint Online disables the links in my excel file to cells in another excel file and I cannot find anyway to change the links.
    This is a pretty basic function that is used extensively in excel so I'm a little surprised that this is not available in SP Online.

    Hi,
    According to your description, the links to other Excel files in the current Excel file not working if in a SharePoint Online environment.
    In SharePoint, Excel files is handled by Excel Services. In SharePoint 2013, the “unsupported features continue to behave as they do in Office SharePoint Server 2007
    for Excel Services”:
    https://msdn.microsoft.com/en-us/library/office/ff595319(v=office.15).aspx
    Among the “Unsupported Features in Excel Services in SharePoint 2007”, “External references (workbooks that contain links to other workbooks)” is there:
    https://msdn.microsoft.com/en-us/library/ms496823(office.12).aspx
    As a workaround, I would suggest that you can transfer the data from Excel file to SharePoint list/library, it would be easier to deal with this scenario in SharePoint
    with the content management related feature provided.
    You can also submit a feedback to the Office Developer Platform with your expectation about the future version of SharePoint:
    http://officespdev.uservoice.com/
    Thanks                      
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Read and write excel sheet data from uploded file in sharepoint site programmatically 2013

    hi team,
    I am working on sharepoint 2013.I want to read and write data in excel sheet (micrsoft excel) from stored file in shrepoint docoumnt library .please suggest me
    vijay

    Hi
    Vijay,
    check those links
    http://www.sharepointwithattitude.com/archives/61
    https://social.technet.microsoft.com/Forums/en-US/e760051b-a92f-473c-9ec9-0f0c36c99e40/read-and-write-excel-sheet-data-from-uploded-file-in-sharepoint-site-programmatically-2013?forum=sharepointdevelopment
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Open And Edit Word File In SharePoint Site Programmatically (Without Save On Local system)

    Hi Sir ,
             I am working as sharepoint developer. I have face some problem in Edit and open document file in sharepoint site programmatically. I want to open file and edit directly in sahrepoint site without save in local system,
         Issue:   I have upload one doc file then try to edit and open but In that case file is dowanload and save in local save.

    Hello,
    As i understand you want to open and update word file. Please have a look at below links:
    http://mysharepointwork.blogspot.ca/2010/06/programmatically-open-and-save.html
    http://howtosharepoint.blogspot.ca/2010/05/programmatically-edit-and-save-file.html
    It is good place to start.
    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

  • SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory

    SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory
    after retry..again SharePoint Designer requires the following component require to install Microsoft.NET framework version 4 i have downloaded and try to installed but fail not work please answer what to do?
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    For running SharePoint Designer 2013, you need to install Microsoft .NET 4.0 Framework or higher.
    Please uninstall the Microsoft .NET 4.0 Framework, and install it again. After that, reboot your machine.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Unknow error occured while Updating Mpp file to sharepoint 2010 list

    Hi , 
    Any body can help me here whenever i am syncing any mpp file to sharepoint 2010 list  i am getting error that 
    "Please check SharePoint  site is running or not "
    Thanks
    Abhishek 
    Abhishek Tiwari

    1- once you are done with creating MPP file save as .MPP file Type in all files and store in the same site where you would like to view/see.
    3- create new project task.
    4- now open the file and start syncing give the site name only  there you will get a drop of your project task in second column which you just created.
    5- validate and start syncing .
    NOTE :- whenever you are making any modification in file make sure that you haacve saved the file  by slecting as .MPP  in all file & stored in the same site .  
    Abhishek Tiwari

  • Error when moving files between Sharepoint sites using 'content and structure' feature

    Hi,
    I am using Sharepoint Online 2013 on a mac computer.
    I am trying to move files between sharepoint sites/libraries but because the "open with explorer" link does not work on mac computers, I need to do so using the 'content and structure' feature.
    When I select a file to move and then select the destination site/doc library, i get the following error:
    An error was encountered performing this operation.
    Operation to Move '120207_Australia Post_Invoice.pdf' to '/Ops/internal/admin/General Admin' failed
    No items were moved. Please remove 120207_Australia Post_Invoice.pdf from the selection and retry operation
    Please help!
    Thanks,
    Kate

    Hi Kate,
    If you mean only one file "120207_Australia Post_Invoice.pdf" could not be moved, please compare this file to the other files moved successfully, check if there are some differences, like the content types, fields.
    Also compare the source library and destination library, make sure they have the the same type of fields.
    And you could have a try of moving this single file separately see if it could help, or as a workaround to download this file from source and upload to the destination library.
    Since it is related to SharePoint Online 2013, we cannot see the ULS log for more information, I would suggest you post this issue in Office365 SharePoint online dedicated forum via the following link for a better assistance.
    http://community.office365.com/en-us/forums/default.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Download older version of a file from SharePoint Document Library using CSOM and 404 error

    Hi,
    I am trying to download previous versions including Major and Minor versions of documents from SharePoint Online using CSOM. I get 404 error when I try to download the file. I found several posts on various discussion forums where people are getting same
    error but none of those have any solution/answer. Below is one of the threads and sample code I have tried that results in 404 error. If I use the link in browser directly, I am able to download the file. Also I am able to download the current version of file
    using CSOM without any problem, it is only the older versions that give me 404 in CSOM.
    http://qandasys.info/how-to-download-the-historical-file-version-content-using-csom/
    public int GetStreamFromFile(string docid, string lib, string fileurl, ClientContext clientContext, int iuserid, string Version, bool isCurrrent)
    if(!isCurrent)
    List LibraryName = clientContext.Web.Lists.GetByTitle(lib);
    clientContext.Load(LibraryName);
    clientContext.ExecuteQuery();
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "" + fileurl +
    Microsoft.SharePoint.Client.ListItemCollection collListItem = LibraryName.GetItems(camlQuery);
    clientContext.Load(collListItem, items => items.Include(item => item.Id, item => item["FileLeafRef"], item => item["LinkFilename"],
    item => item["FileRef"], item => item["File_x0020_Size"], item => item["DocIcon"], item => item.File.Versions));
    //clientContext.Load(collListItem);
    clientContext.ExecuteQuery();
    foreach (Microsoft.SharePoint.Client.ListItem oListItem in collListItem)
    //string fileurl1 = (string)oListItem["FileRef"];
    //string filename = (string)oListItem["LinkFilename"];
    foreach (FileVersion version in oListItem.File.Versions)
    if (Version == version.VersionLabel)
    //Added excutequery to get object one more time as per blog
    //http://social.technet.microsoft.com/Forums/de-DE/sharepointdevelopmentprevious/thread/88a05256-8694-4e40-863d-6c77512e079b
    clientContext.ExecuteQuery();
    FileInformation fileInformation = ClientOM.File.OpenBinaryDirect(clientContext,version.Url);
    bytesarr = ReadFully(fileInformation.Stream);
    Darwaish

    Hi,
    According to your description,
    I know you want to get older version of a file from SharePoint Document Library using Client Object Model.
    The following code snippet for your reference:
    public void GetVersions()
    ClientContext clientContext = new ClientContext(“http://SPSite”);
    Web site = clientContext.Web;
    clientContext.Load(site);
    clientContext.ExecuteQuery();
    File file = site.GetFileByServerRelativeUrl(“/Shared Documents/mydocument.doc”);
    clientContext.Load(file);
    clientContext.ExecuteQuery();
    ListItem currentItem = file.ListItemAllFields;
    clientContext.Load(currentItem);
    clientContext.ExecuteQuery();
    FileVersionCollection versions = file.Versions;
    clientContext.Load(versions);
    clientContext.ExecuteQuery();
    if (versions != null)
    foreach(FileVersion _version in versions)
    Console.WriteLine(“Version : {0}”,_version.VersionLabel);
    More information:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.versions.aspx
    Best Regards,
    Dennis Guo

  • Will office web apps preview msg files in Sharepoint 2013

    We are filing Outlook msg files into sharepoint and want to be able to preview the files without opening them one by one.
    Will office web apps do the work?
    Thanks

    No, OWA does not support msg file types.
    SharePoint - Nauplius Applications
    Microsoft SharePoint Server MVP
    MCITP: SharePoint Administrator 2010
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • I followed your help directions on "Corrupt extension files" under "Unable to install add-ons", foolishly deleting the files you told me to. Now firefox won't open. I tried reinstalling firefox but it still won't open. Now what do I do?

    I was trying to install the SEOQuake add on. After clicking install Firefox would hang up saying the script had timed out and asking if I want to stop it or continue. Didn't matter which option I chose nothing would happen. The only way to stop it was to close Firefox and restart. Tried restarting the computer. Still wouldn't install. Tried installing the Outwit add on and got the same error leading me to conclude it was a problem with Firefox, not the add on. I found this help page <http://support.mozilla.com/en-US/kb/Unable+to+install+add-ons?s=addons+won't+install&as=s> and did everything it told me to. Finally at the end I got to "Corrupt extension files". I foolishly deleted the files you told me to and now Firefox won't even start! I tried reinstalling Firefox and it still won't start. Tried restarting the computer. I have no idea how to get back to where I was let alone install the add ons I wanted to install. Please help. At this point I'd just be happy to be able to get Firefox working.

    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    Create a new profile as a test to check if your current profile is causing the problems.<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)<br />
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • How to copy and paste the solution files of SharePoint 2010 from one machine to another machine?

    Hi,
    I was working with SharePoint 2010  in one of my Virtual machines.Now that the lease for my Virtual Machine is going to expire, I want to shift the entire contents of the project to another machine (local) with SharePoint 2010. Also, I want the pages
    in the other machine to be editable. 
    How can I copy the solution files to the other machine? And I want the exact path where the files are located, so that I can shift them to the other machine.
    Thanks in advance. 

    ...that's not a good approach.
    Deploying customisations can be as simple as files being copied onto the file system. Most of the time however there is a lot more happening behind the scenes and simply copying the files won't work.
    Also that is assuming that you mean solutions rather than the pages themselves (or the contents of document libraries) in which case you want to copy databases, not just files.
    SharePoint isn't a simple thing to move, you may need to look at this a bit harder.

Maybe you are looking for

  • Photos Year Overview does not always summarize geographic locations

    Hello, This has been bugging me for a while now. I have searched for similar questions in this forum but haven't found a thread that treats the same issue, so here we go. In the year overview, in the standard IOS Photos app (completely zoomed out), n

  • E71 Reminders on missed calls, unread messages

    Hi all I wonder if you know how to do this. I had a motorola v3 before I bought the E71. This old motorola used to beep every so often whenever there was a missed call or an unread message. This was very useful since if you happen to be away from you

  • Unity 7 Licensing Question

    Hi all, We recently upgraded Unity 4 to Unity 7 in a-la-carte licensing. As far as my understanding goes the user licensing model in Unity 7 is that all subscribers are UM subscribers and there are no more VM subscribers any longer. Below is a Unity

  • Feature suggestion for Safari

    This might have been requested before, but I couldn't find it anywhere on this forum so here it goes. It would be great to have expanding menu for different Internet TLDs under .com-button, just like there's one under a-button for umlauts. For exampl

  • Mass password change for selective User id's ?

    Hi,     Thanks to answer for my last question, really appreciated your help. My new question:  1.   If I create Mass User Id's by using SU10, pwd's are generated automatically. Is there a way to pick a pwd e.g  initpass for all ? 2.   Is there any pr