How to filter with mime types

Again thanks for the help getting up and running.
Now that I am up and running I know my task at hand and I have comleted most of it except for a couple of things. Here is my task:
To have 1 URL filter lists. Lets call it WhiteList-special. What my manager wants is this.
To all URL's matching the WhiteList-special filter allow the connections filtering out a set of mime types.
To all URL's not in the WhiteList (still allow them them) but apply a different set of mime type restrictions.
How can I go about doing this? Do I use the http:// resource and set up the whitelist-special there with a mime list and then in default set up an allow list of basically .* with a different mime type list ??
Also I noticed that in the mime.types file gnu zip (.gz) was listed as an encoding and not application. Thus if I include the gz mime type in my <Filter "filter-ct" ...> line the gz seems to be ignored. I block all other mime types that are of the application type but I cannot block any encoding type. Am I doing something wrong?
thanks
Doug

Here is what you can do:
(the simplest way)
Use a filter that will add a variable to all the mime-types that you want to whitelist.
Then use a filter to deny all the other types. In the below code, the identity filter is the one that you can use to touch all the whitelist -- (below, it only allows text/plain), and the deny filter will deny all the rest.
To your question on content-type, check how the content-length is obtained in the below code.
-------obj.conf------------
<Object ppath="http://.*">
ObjectType fn="cache-enable" query-maxlen="10" log-report="off"
ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="7200"
Output fn="insert-filter" type="text/plain" filter="identityfilter"
Output fn="insert-filter" type="*" filter="denyfilter"
Service fn="proxy-retrieve" method="*"
</Object>
|cat identityfilter.c
* Usage:
*     At the end of magnus.conf:
*         Init fn="load-modules"
*              shlib="<path>/identityfilter.<ext>"
*              NativeThread="no"
*     Inside an object in obj.conf:
*         Output fn="insert-filter"
*                type="text/*"
*                filter="identityfilter"
#include "nsapi.h"
int identityfilter_insert(FilterLayer *layer, pblock *pb) {
    pblock_nninsert("identityfilter", 1, layer->context->rq->vars);
    return REQ_PROCEED;
void identityfilter_remove(FilterLayer *layer) {
int identityfilter_write(FilterLayer *layer, const void *buf, int amount) {
    return net_write(layer->lower, buf , amount);
NSAPI_PUBLIC int nsapi_module_init(pblock *pb, Session *sn, Request *rq) {
    FilterMethods methods = FILTER_METHODS_INITIALIZER;
    methods.insert = &identityfilter_insert;
    methods.remove = &identityfilter_remove;
    methods.write = &identityfilter_write;
    const Filter *filter = filter_create("identityfilter", FILTER_CONTENT_TRANSLATION, &methods);
    return REQ_PROCEED;
|cat denyfilter.c
* Usage:
*     At the end of magnus.conf:
*         Init fn="load-modules"
*              shlib="<path>/denyfilter.<ext>"
*              NativeThread="no"
*     Inside an object in obj.conf:
*         Output fn="insert-filter"
*                type="text/*"
*                filter="denyfilter"
#include "nsapi.h"
int denyfilter_insert(FilterLayer *layer, pblock *pb) {
    char* processed = pblock_findval("identityfilter", layer->context->rq->vars);
    if (!processed) {
        pb_param *pp = pblock_remove("content-length", layer->context->rq->srvhdrs);
        if (pp) param_free(pp);
        layer->context->data = (void*)1;
        Request* rq = layer->context->rq;
        rq->status_num = 403;
        pp = pblock_remove("status", rq->srvhdrs);
        if (pp) param_free(pp);
        pblock_nvinsert("status", "403", rq->srvhdrs);
    } else {
        layer->context->data = (void*)0;
    return REQ_PROCEED;
void denyfilter_remove(FilterLayer *layer) {
int denyfilter_write(FilterLayer *layer, const void *buf, int amount) {
    if ( layer->context->data ) return IO_ERROR;
    else return net_write(layer->lower, buf, amount);
NSAPI_PUBLIC int nsapi_module_init(pblock *pb, Session *sn, Request *rq) {
    FilterMethods methods = FILTER_METHODS_INITIALIZER;
    methods.insert = &denyfilter_insert;
    methods.remove = &denyfilter_remove;
    methods.write = &denyfilter_write;
    const Filter *filter = filter_create("denyfilter", FILTER_CONTENT_TRANSLATION, &methods);
    return REQ_PROCEED;
-----------------------------------What is my best approach? Can I simply call another Filter from mine?
check out func_exec and friends in nsapi.

Similar Messages

  • Problem with mime type in web.xml file

    Hi everybody,
    I actually got a problem with mime types on Weblogic 6.0 under Linux.
    I read the documentation so I added the next lines in the web.xml file in
    the WEB-INF directory of my server :
    <mime-mapping>
    <extension>
    doc
    </extension>
    <mime-type>
    application/msword
    </mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>
    ppt
    </extension>
    <mime-type>
    application/vnd.ms-powerpoint
    </mime-type>
    </mime-mapping>
    Why can't I retrieve a .doc or .ppt files with an internet browser correctly
    ? I get only text/plain ...
    Can someone help me ?
    Regards,
    Alexis Berger

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • Need Java Coding to sent File in a Mail Attachment with MIME Type with SMTP

    Hi Experts,
      I need java code to sent a file in an email attachment with MIME type.
      Please provide me.
    TYhanks
    Bhaskar

    Hi Stefan,
      Thanks for your Blog.
    The same java mapping is been used in my current system, but the legacy system cannot read
    some emails as they are asking us to send the email in MIME format.
    Already i am sending in MIME format itself.
    They can read some Emails and they cannot ream some Emails.
    I think the problem could be their exchange server.
    Can you please suggest on this.
    Regards,
    Bhaskar

  • Resource interpreted as Document but transferred with MIME type application/postscript.

    Hi,
    we are running framed web pages showing preview (PNG or JPEG) of postscript files. These previews are simply linked to the postscript files. Following this links one gets the postscript source shown and not the graphics!? The error console says:
    Resource interpreted as Document but transferred with MIME type application/postscript.  
    When one chooses to:
    Open link in new tab
    the postscript is correctly shown!
    The rough layout of the pages is:
    Start page:
      and frame2.htm (frame1.htm is not of importance):
    When one sets the target to open up a new page the postscript is shown correctly, but we want the postscript to be shown in the 'content' frame!
    If I remember correctly, did this work as wanted in the past and changed the behavior the last year. We experience this behavior in snow leopard and lion (all running the up to date Safari - and yes we are upgrading constantly).
    Any help to get the wanted behavior (back), would be very appreciated!!
    Cheers,
    Raimund

    same thing for me, anyone have any info on this?

  • How to get the Mime Type of the file?

    Hi Everyone!,
    I want to upload a random file into my table as a BLOB and simultaneously want to fill the respective another column with its MimeType. Earlier I used Oracle Apex for this, but due to my new requirement I need to make this happen with the help of PL SQL and Forms. Could you help me in getting how we can upload the file and most importantly, how we can get its Mime-Type.
    My chosen file can be of any type; it can be doc ,pdf,txt,xls ,gif or any other format.
    If you could provide the example with your reply then it would be great.
    Thanks
    Harbinder

    hi
    for that u have to use webutil.
    declare
          f varchar2(100);
    begin
         f := webutil_file.file_open_dialog();
         if f is not null then
              :doc.doc_name := f;
              end if;
         end;and
         DECLARE
    filename VARCHAR2(256);
    BEGIN
    filename := CLIENT_GET_FILE_NAME (File_Filter => 'jpg (*.jpg)|*.*|');
    READ_IMAGE_FILE(filename, 'jpg', 'image');
    END; sarah

  • Safari doesn't display an object with MIME type video/mp4

    So, I've got a little hiccup here. I put together a CV in html with samples you can click to bring up. Now, I don't make any claims to professional geekdom, but I try to be fairly html savvy, and since I'm sending this to the college IT guys, I want to do it right. So I'd like this thing to use valid w3c compliant html. Not too tough, fix some missing quotes and learn how to use the object tag instead of embed. Done.
    Well, here's the problem. I loaded it into Safari for testing, and a Quicktime file won't play. Now, it runs fine on Firefox. The obtuse and awkwardly lumped in IE version of the object works fine (tested in IE6, Win2K virtual machine). And the same file ran fine when I had it using an embed tag. Now it just brings up the Quicktime emblem, takes up the specified amount of space, and doesn't do anything.
    What did I do wrong? I've got the latest Quicktime and Safari, and I know it's standards compliant. Do I have to feed it some more specific type for an h.264 encoded mp4?
    Here's the code I used. The embed tag is the one that works, the object tag is the compliant one that doesn't. I'm guessing I'm missing a parameter or something. Any advice?
    <embed scale="1" src="files/Sabres.mp4" pluginspage="http://www.apple.com/quicktime/download/" autoplay="FALSE" volume="100" cache="TRUE" height="496" width="640">
    <object type="video/mp4" data="files/Sabres.mp4" height="496" width="640">
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    Your browser cannot display this content. Click here to download it.
    </object>

    Tom and Kirk, thanks for your time. That would work, but since <embed> is a non-standard tag, I want to avoid it.
    Andy, I actually stopped by that site last night, and I did use it for the object code.
    My problem is that for some reason, what looks like a legitimate implementation of <object> isn't displaying in Safari. I know Firefox is a bit more forgiving of sloppy code, so I don't blame Safari for that one. I know Safari can display the file because it displayed it properly when I called it with embed. I'm just not sure what's wrong with the code that's making Safari not bring up the video. It knows it's Quicktime and loads the file, I know that, because it brings up the emblem and starts hoarding RAM when I bring it up in Safari, but it just holds there. I've tried a couple MIME types, including video/quicktime and video/mp4, both worked in Firefox, and video/h264 just as a shot in the dark, and both Safari and Firefox showed the alternate content.
    By the way, here's the full code I used to display the object, using Castro's cloaking technique for IE compatibility. I omitted it earlier because when I isolated the non-IE section alone in the body of the document it behaved the same as it did with the cloaking (working in FF, broken in Safari).
    <!--[if IE]>
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="496" width="640">
    <param name="src" value="files/Sabres.mp4" >
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    </object>
    <![endif]-->
    <!--[if !IE]> <!-->
    <object type="video/mp4" data="files/Sabres.mp4" height="496" width="640">
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    Your browser cannot display this content. Click here to download it.
    </object>
    <!--<![endif]-->
    Message was edited by: The Spine

  • How to get the 'mime-type' of a Resource accessed via WebDAV

    Hello,
    When a document is uploaded into a folder which is managed by a WebDAV RepositoryManager we don't see a Property 'mime-type' or something like that.
    Our code:
    <i>IPropertyMap lijstProp = tempResource.getProperties();</i>
    In the list there is no Property 'contenttype' or something like that!
    This is a bit of a surprise to me since it seems to me a very relevant Property of a Resource.
    How can the mime-type/contenttype of a Resource managed by a WebDAV Repository Manager be determined?
    Kind regards,
    Maarten Rutten

    Hi Thilo,
    We access the Resources via API.
    When I use "IPropertyMap lijstProp = tempResource.getProperties();" I assume that ALL the available properties are in 'lijstProp'.
    (is this correct?)
    I don't have the Property "contenttype" available in 'lijstProp'.
    A workaround could be that when adding documents to a folder via API's, we also should set this Property via API's.
    But when documents are added directly into the WebDAV folder we don't have that option. So, when we find a Resource with the Property 'contenttype' missing the only option I see is to 'calculate' the contenttyype based on the extension of the Resource.
    Do you agree?
    Kind regards,
    Maarten

  • How are Static File mime types determined?

    How does APEX determine the mime type for imported static files?
    We have a number of javascript files in our application, some of which are listed on the Static Files page as "text/html" and some are "text/plain". But some are imported as "application/octet-stream" which prevents them from being edited within APEX.
    All of these files contain plain text javascript functions.
    File sizes range from 539 bytes to 21251 bytes
    We tried changing the extensions from ".js" to ".jscript" and reimported them. They were all given a mime type of "text/plain". But one file was misnamed with the extension ".jsript", so we deleted it, changed the extension to ".jscript" and re-imported it. It was imported as "application/octet-stream" even though it was exactly the same file just renamed!
    What's going on?

    I am trying to use a rather older programming language called Mozart, an extension of OZ. I installed it as a binary, but instead of storing its component binaries in a place like /usr/local/oz/bin/. they are all enclosed inside the /Applications/Mozart.app/Contents/Resources/bin/. which cannot be opened nor can a soft link be made to it located outside the Mozart.app wrapper.
    The only alternative is to try to edit the mimeTypes.rdf files, and give it the full path name to the inside of Mozart.app were the program used for web applications is stored. It is stored in ~/Library/Application Support/Mozart/, which can only be accessed in more recent Mac OS X by going to finder and holding the Option key while opening the Go menu; this will make the ~/Library visible and accessible.

  • How to fix the "MIME types" problem  !

    Hello !
    How to fix the problem of "MIME types", Windows doesn't want to keep the APPS by default !!!
    When I try the application by default (for ex. right clic on .PSD files and "open with"), then I validates the selection program (Photoshop.exe), it does not appear in the selection of programs by default in windows!
    Result, even dynamic objects no longer open in my applications and all adobe files icon don't appear in explorer
    Thx

    I find a solution who works for me (Win7 64bit) !
    Use a Registry cleaner (ccleaner) and kill old file format entry !
    Now restart association with a .AI file, because the way to .exe is in another place like other apps !
    Try this:
    First, right click on your illustrator apps icon (desktop or Start menu) and choose "open the file location" and copy the dir ("C:\Program Files\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows" for me )
    Right clic on your .AI file and select "Open with", now click on "browse" to "C:\Program Files\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows" for 64bit system.
    "Windows" say "you've got problem with registry file association" the correction's automaticatly and the illustrator icon appear in the list of default apps.
    Select and valid him
    Now, do the same for all your "unknown files type" with the good apps !

  • Print HTML using JPS API.. How to configure printer MIME-TYPE as text/html

    Hi All,
    I have to print the HTML pages.. for this i have used JPS API , but i found that my printer doesnt supoort Mime-type(Flavour) text/html.
    Can someone help me in this ...
    i) Can i configure my printer for this Mime-type , if yes then HOW?
    ii) Is there any work around ?
    Thank you all in advance :)

    I reposted this question in the Database forum. Admin can feel free to delete this thread.
    The answer is to add this at the top: htp.addDefaultHTMLHdr(false);
    Thanks,
    T.
    Edited by: 855677 on May 3, 2011 9:35 AM

  • How to determine the MIME types of the files?

    I'm making an application, in which I've to upload the files to the database. Now I want to insert into the database the MIME type of the files. Now how can I know that which type of the file is having which MIME type?
    where can I get the list of all supported MIME types?
    Even if I get the list, then every time I update the file in the database, so every time I have to check the file extension and then insert the MIME type...
    this seems to be a tedioius job..
    Is there any simple way to do this?

    I could ask "supported by what?" but I assume you will
    be the one supporting them. Here's a link to the
    latest list of registered MIME types.HERE's the link...
    ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types

  • Inbound Email Attachments with MIME type of application/octet-stream

    I'm hoping someone can help me here. I'm trying to start a BPEL process via email. The email can consist of no attachments or multiple attachments. All the attachments should be text, e.g. XML, CSV, etc.
    Where I have got to is receiving the email and writing the attachments to variables. All is fine until I get an attachment that has a MIME type of application/octet-stream. I would only expect to see this for files that are not text based.
    Does anyon know how I can inturpret this type so I can extract the text? In this example both files are text based although only the first file is displayed.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <mailMessage xmlns="http://services.oracle.com/bpel/mail">
    - <from>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </from>
    - <to>
    - <address>
    <email>j@james</email>
    <displayName>James</displayName>
    </address>
    </to>
    - <replyTo>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </replyTo>
    <subject>RE: test</subject>
    <sentDate>2007-05-02T11:19:37.000+12:00</sentDate>
    <contentType>multipart/mixed; boundary="----_=_NextPart_001_01C78C47.6040C3F0"</contentType>
    - <content>
    - <multiPart>
    - <bodyPart>
    <contentType>text/plain; charset="iso-8859-1"</contentType>
    <content>________________________________ From: James [mailto:[email protected]] Sent: Tue 1/05/2007 3:05 PM To: James Subject: test</content>
    </bodyPart>
    - <bodyPart>
    <contentType>text/plain; name="create_MODS_schema.sql"</contentType>
    <content>CREATE USER TOLLBPEL IDENTIFIED BY VALUES 'TOLLBPEL' DEFAULT TABLESPACE APPS_TS_MODS_DATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT ANALYZE ANY TO MODS; GRANT CREATE TYPE TO MODS; GRANT CREATE TABLE TO MODS; GRANT ALTER SESSION TO MODS; GRANT QUERY REWRITE TO MODS; GRANT CREATE CLUSTER TO MODS; GRANT CREATE SESSION TO MODS; GRANT CREATE TRIGGER TO MODS; GRANT CREATE SEQUENCE TO MODS; GRANT CREATE SNAPSHOT TO MODS; GRANT DROP ANY OUTLINE TO MODS; GRANT ALTER ANY OUTLINE TO MODS; GRANT CREATE ANY OUTLINE TO MODS; GRANT CREATE DATABASE LINK TO MODS; GRANT CREATE PROCEDURE to MODS; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_DATA; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_IDX;</content>
    <bodyPartName>create_MODS_schema.sql</bodyPartName>
    </bodyPart>
    - <bodyPart>
    <contentType>application/octet-stream; name="citup.log"</contentType>
    <content>W0luc3RhbGxTaGllbGQgU2lsZW50XQ0KVmVyc2lvbj12NS4wMC4wMDANCkZpbGU9TG9nIEZpbGUNCltSZXNwb25zZVJlc3VsdF0NClJlc3VsdENvZGU9LTEyDQo=</content>
    </bodyPart>
    </multiPart>
    </content>
    </mailMessage>
    Any help will be appreciated.
    cheers
    James

    I'm hoping someone can help me here. I'm trying to start a BPEL process via email. The email can consist of no attachments or multiple attachments. All the attachments should be text, e.g. XML, CSV, etc.
    Where I have got to is receiving the email and writing the attachments to variables. All is fine until I get an attachment that has a MIME type of application/octet-stream. I would only expect to see this for files that are not text based.
    Does anyon know how I can inturpret this type so I can extract the text? In this example both files are text based although only the first file is displayed.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <mailMessage xmlns="http://services.oracle.com/bpel/mail">
    - <from>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </from>
    - <to>
    - <address>
    <email>j@james</email>
    <displayName>James</displayName>
    </address>
    </to>
    - <replyTo>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </replyTo>
    <subject>RE: test</subject>
    <sentDate>2007-05-02T11:19:37.000+12:00</sentDate>
    <contentType>multipart/mixed; boundary="----_=_NextPart_001_01C78C47.6040C3F0"</contentType>
    - <content>
    - <multiPart>
    - <bodyPart>
    <contentType>text/plain; charset="iso-8859-1"</contentType>
    <content>________________________________ From: James [mailto:[email protected]] Sent: Tue 1/05/2007 3:05 PM To: James Subject: test</content>
    </bodyPart>
    - <bodyPart>
    <contentType>text/plain; name="create_MODS_schema.sql"</contentType>
    <content>CREATE USER TOLLBPEL IDENTIFIED BY VALUES 'TOLLBPEL' DEFAULT TABLESPACE APPS_TS_MODS_DATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT ANALYZE ANY TO MODS; GRANT CREATE TYPE TO MODS; GRANT CREATE TABLE TO MODS; GRANT ALTER SESSION TO MODS; GRANT QUERY REWRITE TO MODS; GRANT CREATE CLUSTER TO MODS; GRANT CREATE SESSION TO MODS; GRANT CREATE TRIGGER TO MODS; GRANT CREATE SEQUENCE TO MODS; GRANT CREATE SNAPSHOT TO MODS; GRANT DROP ANY OUTLINE TO MODS; GRANT ALTER ANY OUTLINE TO MODS; GRANT CREATE ANY OUTLINE TO MODS; GRANT CREATE DATABASE LINK TO MODS; GRANT CREATE PROCEDURE to MODS; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_DATA; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_IDX;</content>
    <bodyPartName>create_MODS_schema.sql</bodyPartName>
    </bodyPart>
    - <bodyPart>
    <contentType>application/octet-stream; name="citup.log"</contentType>
    <content>W0luc3RhbGxTaGllbGQgU2lsZW50XQ0KVmVyc2lvbj12NS4wMC4wMDANCkZpbGU9TG9nIEZpbGUNCltSZXNwb25zZVJlc3VsdF0NClJlc3VsdENvZGU9LTEyDQo=</content>
    </bodyPart>
    </multiPart>
    </content>
    </mailMessage>
    Any help will be appreciated.
    cheers
    James

  • How to filter with multiple selection on a single column on external list, currently only one filter per column is available.

    I have external list where i want to apply multiple filter for every column like we do in Excel spreadsheet - we can filter a spreadsheet column by selecting multiple checkbox for every  column. I am using Sharepoint 2010
    Is this possible in sharepoint 2010? Any idea how to acheive that?
    Thanks in advance.

    Hi Rahul,
    According to your description, my understanding is that you want to use filter with multiple values on a column of an external list in SharePoint 2010.
    Per my knowledge, there is not an OOB way to achieve it. As a workaround, you can custom the web part to implement it. There is an articles for your reference:
    http://blogs.telerik.com/aspnet-ajax/posts/13-11-05/add-excel-like-multi-select-filtering-to-your-asp.net-datagrid
    In addition, you can use a third party solution to achieve it, please take a look at:
    http://abilitics.com/Blog/index.php/sharepoint-improved-grids-with-excel-like-inline-editing/
    http://social.technet.microsoft.com/forums/sharepoint/en-US/3d19b9d3-d394-4af9-9e8e-2dee70b50540/filter-column-with-multiple-filter-values-in-sharepoint-list
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to filter the file type and size when uploadind files into APEX

    Hi,
    I was wondering how I can do to validate the size of a file, before moving it to my table ? I'd like to filter the file type, but for this one, I think I can use regular expressions in a validation process.
    I don't know if there is a way to read the file size even before sending it into the temporary file table.
    Thank you
    Leinad

    Hello Leinad,
    AFAIK, you have to create an APEX validation (PL/SQL returns Boolean or Returns error text), which will query the file details from apex_flow_files table. Here you can get filetype and size etc.
    So just validate and if any validation fails, then delete the file from apex_flow_files and riase error message.
    Regards,
    Hari
    P.S. Please note that, if there are other apex validations on your page and if they fail, still apex will load the file into apex_flow_files table. So it's good idea to create a validation (PL/SQL) which will fire (condition) when inline validation errors occured. Make sure that this is the LAST validation on your page in sequence. And here you can write code to delete the file from apex_flow_files table.
    Edited by: Hari_639 on Sep 20, 2012 10:09 PM

  • How to get the MIME type of the given file in R/3

    Dear Experts,
    Please tell me the FM or Class to get the given file MIME type in R/3 . I am using GUI_upload Function module to upload the file in R/3 .
    Edited by: balaji ramadas on Jan 16, 2009 5:39 AM

    Thank you Prosenjit I m using this FM   CV120_GET_MIME_TYPE
    to get the MIME type of the file
    regards,
    Balaji.R
    Edited by: balaji ramadas on Jan 19, 2009 9:24 AM

Maybe you are looking for

  • Did you know- you can create consistently branded collateral with Project ROME?

    Hi Romans, Whether you have a small business or  you want to market yourself while job hunting, Project ROME is a great tool to  create branded collateral quickly and easily! Simply check out the Creative  & Interactive Packages in Project ROME and s

  • Adding filename and path to Adobe Designer form footer

    We are developing a form and Document Control required the form have a field on the form footer to show the live "Path & filename". I need what is shown in the properties under "File" to show up in the footer. I have been unable to locate the correct

  • Where can i get my i pod fixed

    Hey were can I get my I Pod fixed

  • Applications exit randomly...PLEASE HELP

    hello all, My iPhone has a tendency to exit out of safari randomly and the iPod application. I don't know why it does this but it is very annoying. I will just be browsing a website and it will just go back to the home screen. does anyone know why it

  • Multple Reports From One Master

    I am a new user of Hyperion Reports. I would like to export a report in HTML to an external directory using the descendants of a dimension. There are approximately 2,000 descendants. Then I would like to link the exported HTML reports to individual w