How to configure file upload restriction by file extension?

Hi All,
I want to know if its possible to restrict the file upload for any file extensions in CM Repositories. For example, I want that the users can not upload .avi files. Can I configure that restriction?
Regards and Thanks,
Arnau Rovira

Hi,
> How can I create a repository service?
> It's like a web service?
No. A repository service is a standard pluggable service within the KM framework. Search for "repository service" on SDN for further details.
> can I copy the upload command
> from the actual repository service
The upload command is the upload command is the upload command. It is not bound to any repository service.
Yes, you can try to extract all implementation classes for the actual upload command and create a new one under a new namespace and modify the interesting parts after decompilation. But be warned: Your questions signal that you are a beginner in the KM framework, and the things described so far are more in the direction "hardcore development"...
Hope it helps nevertheless
Detlev

Similar Messages

  • How to configure File Adapter (Read)..?

    Hi all,
    While configuring the Read Adapter in BPEL 11g i am getting not reading any data from given location. But my location are correct.. So please how to configure File Read adapter and give any URL for this ... Thank you

    Hi all,
    The file adapter it consists many operations like
    1: Read
    2:Write
    3:Synchronous Read
    4:ListFiles
    So you are asking about Read operation
    First you take one File Adapter-->Select Read Operation--->Give Incomming file Location ( In local system you can give like C:/temp/NewDir Or Unix Envornment like you can give /temp/NewDir)
    After that you can give file Name like wich format it's incomming file name like CSV.txt or CSV.xml after you give Polling Intervels second or Mintued or Hour.You can select Native format or Define service Later once configure all those things the file adapter configration is done . If you have any doubts in file configrigation please go for the below link...........
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10231/adptr_file.htm#TKADP322

  • How to display file extensions

    Hi,
    I'm trying to get our Sharepoint 2013 server to show file extensions again and I've had no luck so far. I've been able to add an extra name column that shows the file extension (like ), but that name is not clickable anymore so I've ended up with one name
    that's a link and the same name next to it. This doesn't look good, especially when the users pick overly long file names.
    This (http://social.technet.microsoft.com/wiki/contents/articles/11161.how-to-display-file-extensions-in-a-sharepoint-document-library.aspx) seems to apply to Sharepoint 2007 only. I'm not sure which onet.xml file they mean and the default file has several
    occurences of "Name=”Created_x0020_Date”", or how adding
    Name=”File_x0020_Type”/> without an extra opening bracket would work.
    I've also found and tried this solution: http://social.technet.microsoft.com/Forums/sharepoint/en-US/59c15eee-9116-4aa1-8d16-32cd361c9a2f/show-file-extensions-in-document-library?forum=sharepointcustomizationprevious
    >>3. Edit the WebPartPages:XsltListViewWebPart so that the link contains the extension.
    >>a. Open SharePoint Designer and click on the desired document library.
    >>b. Open the View you want to change, which in most cases is "All Documents".
    >>c. Find the line that looks like this:
    >><xsl:value-of select="$thisNode/@FileLeafRef.Name" />
    >>d. Edit the line to look like this:  (the xsl:if tests to see if the suffix is not blank and then displays a '.' and the suffix)
    >><xsl:value-of select="$thisNode/@FileLeafRef.Name" /><xsl:if test="$thisNode/@FileLeafRef.Suffix!=''">.<xsl:value-of select="$thisNode/@FileLeafRef.Suffix" /></xsl:if>
    This doesn't seem to work with Sharepoint 2013 because the line <xsl:value-of select="$thisNode/@FileLeafRef.Name" /> doesn't seem to exist. Are there any other suggestions on how to get the file extensions to show?
    Thank you.

    Hi
    use these functions
    RIGHT (Text, Number)
    Return X characters from the right
    RIGHT(“The Quick Brown Fox”, 5)
    n
    SEARCH(Text1, Text2, Num)
    Returns the index of Text1 within Text2,starting the search at index Number
    Formula should be
    right([Name-column],search[".",[Name-column],1))
    More info regarding calculated columns
    http://junestime.wordpress.com/2013/02/12/sharepoint-calculated-column-formulas/
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • How to set file extension?

    Hello there,
    I have added the ablility of saving the data in my program. I was wondering how do I restrict the file extension when the user wants to save the file?
    What I mean is right now, when a user saves the data to file, they can choose the file name and the file extension. I do not want to allow them to choose file extension. I want to have a predefined extension, for example .usr or .dat.
    I have seen this in many applications but I do not know how to implement this. I would appreciate it if someone could help me.
    Thanks for your help!

    How you are getting the fname from the user has an impact on how you do this, but not what needs to be done. What is required to have something that takes the fname from the user and parses it, extracting a fname. Once you have that, just append the extension that you want and save the file.

  • How to assign file extension and custom icon to executable?

    Hi all,
    I was reading an old thread about this issue:
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=116925 
    I need to try to do this.  My application uses a custom file extension (i.e. .abc).  Upon installation I would like to:
    1.  Assign My App and custom icon to the file class (extension .abc).
    This could be done by manipluting the registry (http://msdn.microsoft.com/en-us/library/bb776856(VS.85).aspx)?  This could be a problem with Vista s unless registry operations occur during installation any changes are placed in a VirtualStore, correct?
    2.  Enable the double-clicking of .abc file type to pass the data in the file to my VI (exe). 
    According to the File Handling Guidelines of Jean-Pierre Drolet (http://www.openg.org/tiki/tiki-index.php?page=File+Handling+Guidelines) the best way to do this may be using LabVIEW as an ActiveX server.
    I know that when I build an executable (or installer?) there is the option to enable LabVIEW to act as an ActiveX server.  This much I know I need to do.
    I thought I would open this discussion again as others may be interested and there doesn't appear to be a completely clear solution available.  Please do contribute where you can.
    Cheers,
    Battler.

    battler. wrote:
    My application consists of Event Structure.
    How to register for ommand line event so that when a user double-clicks on a .abc file I can handle the opening of it?
    This needs to work (the files need to open) not only when the application is closed but also when it's already open.
    Anyone have ideas? 
    The solution to that is to implement a DDE server in your application (and add DDE entries to the registry on installation). There are still DDE functions in LabVIEW vi.lib\Platform\dde.llb but they are considered depreciated and have been removed from the palette, also because Microsoft is trying to tell everyone that DDE is depreciated and sort of unsupported too. But it is still the mechanisme to pass actions from the shell to running applications.
    I hesitate to send you over to lavag.org where there have been some discussions about this years ago. If you go there you would do good to employ a friendly attitude. That board is run all by enthusiasts and idealists and they are all great folks but react not very friendly to people with an attitude.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to include file extensions in contacts?

    When printing contact sheets from the Print module I don't manage to have the file name inclusive of file extension under each thumbnail (e.g. Maria.jpg); so far I only managed to have the file name without the extension (e.g. Maria). Any idea how to do it?

    F-
    <br />
    <br />I doubt it's impossible, but why would you choose to do this? I we know, perhaps another method may suffice.
    <br />
    <br />
    <span style="color: rgb(102, 0, 204);"></span>
    <font br="" /></font> color="#600000" size="2"&gt;~~ John McWilliams
    <br />
    <br />
    <br />
    <br />MacBookPro 2 Ghz Intel Core Duo, G-5 Dual 1.8; Canon DSLRs

  • How to validate File extension.

    Hi all,
    Can anyone suggest me any Function Module to validate a file extension while selecting the Filename at popup window.
    thanx
    Rakesh

    Hi,
      If you are using upload FM, fill up the following parameters..If you want to filter the data by certain extension.
      Hope this works...
    FILETYPE                        DAT   
    ITEM                                  
    FILEMASK_MASK                   *.xls 
    FILEMASK_TEXT                   *.xls 
    FILETYPE_NO_CHANGE              X     
    THanks,
    Naren

  • How to Hide File Extensions in URL

    Hello Again!
    I've tried to edit my .htaccess file to hide file extensions in my URL, but nothing I try works. I get "Page Not Found" when I try to remove the .html from my pages. Here is the code I have used:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html !-f
    RewriteRule ^{.*}$ $1.html
    I've also used
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^{.*}$ $1.html [L,QSA]
    Neither worked.
    Any thoughts would be helpful! Thanks!
    K

    When you save the document there is a check box in the save window that gives you the option to hide the extension. I've checked this for both Pages & Word. I can't be certain that all applications give this option.
    You can of course delete the extension name from individual files already on your computer by selecting the file name as if editing the name and just deleting the extension part of the name.
    Neville

  • How to hide file extension on finders symbolic view?

    When I switch the finder's view to symbolic the files view turns to an icon or minimized first page of the file's content. In some cases the file extension is displayed at the bottom of this symbol. E.g. files of type PDF always show the 3 letters PDF at the bottom of the small preview image. Files of type PKG don't show it.
    Is there a way to change this behaviour? Changing it in the finder's prefrences only affects hiding or showing the file extension in list view.
    Thanks for any advice!

    I tried it and it didn't look like it took effect. I switched folders and cam back to the first one I looked at and the extensions were showing.
    It may just need time to redraw the view.

  • How to strip file extension off a filename NSString ?

    To retrieve file extension from NSString, we use "pathExtension".
    To retrieve the filename from NSString without the extension we use ?

    9 views any nobodies helping ?
    Oh well...
    I've created this function to achieve this:
    -(NSString *) returnfile_name_without_theextension:(NSString *)filename
    NSString *filename_extension = [filename pathExtension];
    NSInteger filenameextensionlength = [filename_extension length];
    NSInteger filename_length = [filename length];
    filename_length = filename_length - (1 + filenameextensionlength);
    return [ filename substringWithRange:NSMakeRange(0, filename_length) ];
    Hope someone might find this useful.

  • How to configure file upload restriction by file extension or size?

    Hi,
    I have recently configured a 7.0 portal with the BI-JAVA component. A feature for the BW reports and IP iviews is that a user can add comment and even upload a file to a default BI repisotory. It is easy to restrict access to users by means of ACL, but i also want to avoid users from uploading anything apart from *.PDF. It would also be nice to restrict in file size (otherwise it is easy to just rename a file you are uploading). Is there someting available to implement this in the portal?
    I have read some threads that state this is not possible by default and only by creating a custom repository service or just hacking the upload command. These threads seem rather old and i dont know if the presented solution is still valid. Does anybody know if SAP is to delever a solution for this? (perhaps in an enhancement pack?)

    Hi,
        Is there someting available to implement this in the portal?
        No. You have to develop this functionality.
        Have you read this blog: Restricting The Size Of The File To Be Upload in CM Repository ?
        https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3219
    Patricio.

  • How to configure File Adapter along with OS command option

    Hello,
    I want to configure a scenario using File Adapter with OS command option.
    How to use that option in channel configuration of File Adapter.
    What is the default path where it is actually runs this OS command?
    Thanks,
    Soorya

    >
    surya venkat wrote:
    > Hello,
    > I want to configure a scenario using File Adapter with OS command option.
    > How to use that option in channel configuration of File Adapter.
    There are two ways to use the Os command in the file adapter.
    Lets talk about the sender File Adapter.
    First: Run operative system Before Message Processing
    Whenever any operation needs to be performed uppon the source file Just before XI picks it up.
    e.g. Calculate any hash code, backup the file to a given location, create a log at os level, etc...
    ... After Message Processing
    After Xi has processed the message, you can trigger a new os level command:
    e.g. Trigger a mail, check if the archiving was successful, etc.
    > What is the default path where it is actually runs this OS command?
    >
    Theres no default path, you assign the desired path in the Comm Channel configuration.
    > Thanks,
    > Soorya
    I hope it helps.

  • How to configure file type

    Hello,
    can I get the document, how to cofigure the file types? Is dms supporting design documents?

    Hi Sachin,
    Use transaction code DC30 to define the workstation applications and configure the MIME types for each link .doc.xls etc.
    For displaying the design documents you need to install ECL viewer 6 with patch. DMS is supproting all these allpications.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • How to configure file server with portal using KM

    Hi
    i have some word documents,excel documents in my computer.i want to integrate these documents into portal using KM.how to do that?can anybody suggest the steps involved or tutorial to do this configuration.thanks for your help in advance
    Prasad

    Hi,
      It´s very simple to do that.
    1.You must create repository. (I gave you this information).
    2.Create portal users. (in portal or read from ldap)
    3.Create KM navigation iview to point folders in your repository.
    4.Create roles.
    5.Assing roles to users.
      For you that is new in this tools, perhaps needs 3 or 4 days.
    Patricio.

  • How to configure quick upload? I used Migration Assistant to copy iTunes from windows XP

    The transfer worked fine, and the folder is now on my desktop. When I click to open it i receive this message. "Quick upload is not configured. In order to use the quick upload feature you must first select a favorite folder by right clicking one and chosing set as favorite."
    What is a "favorites Folder," and how do I fix this issue?
    Thank you.

    Anyone? Am I leaving something out? Please i need to get this figured out. Thank you.

Maybe you are looking for

  • Windows 8.1: Unable to connect to IBSS network with a profile installed manually

    I created an IBSS network, Imported the IBSS profile and trying to connect from my Windows 8.1 machine. It was not connecting to the network for some reason. Is it supported in Windows 8.1? I was able to connect to the network from Windows 7 machine

  • Change labels Additional Customer Data

    Hi Expert Forum In the transaccion XD02 -> in the option "Additional Customer Data (Central)" I want to change the label "Attribute 1" for a new value for example "Customer Group" How can I do this?   Program name     SAPLV02Z         Screen number  

  • Easiest way to transfer photos from my old Windows desktop to new MacBook?

    I am an Apple newbie. What is the easiest way to transfer 7 years of photos from my old Windows desktop (Vista operating system) to my brand-new MacBook Air (OS 10.9.5)? Please answer in specific and simple terms. I'm not a techie. Thanks.

  • Reversed account still showing in open items

    Hi, Transaction FBS1 was used to reverse a open G/L account line item and it appeared to have been cleared in transaction F-03 (clear G/L account) but it is still appearing in the list of open items(FBL03). The reversal was done in SAP 4.6, before we

  • Encore button help

    hi i am make a dvd project and am using my own button i did it right at least i think and i cant seem to get video to apear when i preview. i cant get the option of rendering the project it is grayed out. the option for animate buttons is checked. my