Results 1 to 2 of 2

Thread: How Do You add a New Document Type to the Document Library

  1. #1
    ingeniousgroup is offline Junior Member
    Join Date
    May 2007
    Posts
    2

    Default How Do You add a New Document Type to the Document Library

    We are using SugarCRM Professional 5RC1.

    We primarily use Mac OSX and i would like the ability to add Pages (Apple iWork 08) documents to the Sugar Document Library. The problem is that the popup window does not allow you to select a Pages document type. It does however allow you to select various other document types such a MS Word, etc..

    So, I gather there must be some document types defineed somewhere in a file or the database itself that I could extend to include the Pages document type. This assumption is based upon the fact that the popup window to upload a new document appears to filter the file extesions allowed.

    I can't see that there would be a reason to prevent the uploading of other document types, since it seems to simply place the files in a drectory on the server (i.e. it doesn't appear to read into the document itself).

    Any help or guidance here would be great.

    Thanks.

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: How Do You add a New Document Type to the Document Library

    To add or remove a "bad file type", create a file called config_override.php in your Sugar installation root directory and change this array. I'm not familiar with Apple iWork docs, so I'm not sure what you would add here.

    PHP Code:
    <?php
        $sugar_config
    ['upload_badext'] = 
        array (
          
    => 'php',
          
    => 'php3',
          
    => 'php4',
          
    => 'php5',
          
    => 'pl',
          
    => 'cgi',
          
    => 'py',
          
    => 'asp',
          
    => 'cfm',
          
    => 'js',
          
    10 => 'vbs',
          
    11 => 'html',
          
    12 => 'htm',
        );
      
    ?>
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I add New Record Type to Quick Create?
    By rellianceus in forum Help
    Replies: 6
    Last Post: 2007-06-13, 03:03 PM
  2. Replies: 0
    Last Post: 2006-10-23, 11:45 AM
  3. Add document to contact
    By mtissandier in forum General Discussion
    Replies: 3
    Last Post: 2006-01-16, 06:29 PM
  4. Replies: 0
    Last Post: 2005-05-29, 08:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •