Check the size of uploaded file in Oracle UCM

I need to check the size of the uploaded primary file in Oracle UCM during checkin. I tried writing a filter on the event validateStandard and check the value of dFileSize. But the value is null. Any ideas what event should I use and which parameter should I check?

hi,
I am new to Oracle UCM. I need same functionailty of checking file size of uploaded content. Could you please elaborate how you achieved it..... thanx in advance.

Similar Messages

  • How do i check the size of a file?

    I want to be able to determine the size of a file in a directory. If the file has size 0kb (ie. no content), i need to be alerted to this. Is there an easy way to do this without having to read the contents of the file itself?
    thanks.

    File.length();

  • How to check the type of uploaded file

    Hi, experts,
    how can I check the type of the uploaded file? I am dealing with exception handling now: when user uploads a type of file which is not allowed, then error msg shows up. So first I have to retrieve the type of the uploaded file.
    Best regards,
    Fan

    Best approach would be to control the file upload program. Here in force user to chose only the kind of file supported.
    If you are using WD4A & fileupload UI element, then after user select a file to upload, before processing the file you can check the file name and get its MIME TYPE as shown below.
    example
    data type file string.
    data dot_offset type i.
    data extension type mimetypes-extension.
    data mimetype type mimetypes-type.
    file = 'Image.jpg'.
    " Find out file name extension
    find first occurrence of regex '\.[^\.]+$' in file match offset dot_offset.
    add 1 to dot_offset.
    extension = file+dot_offset.
    " Get mime type
    call function 'SDOK_MIMETYPE_GET'
      exporting
        extension = extension
    importing
        mimetype  = mimetype.
    later using if/else or CASE statement define your logic.
    Greetings
    Prashant
    P.S. Points Welcome

  • How to get the size of uploaded file in sap ABAP MODULE POOL PROGRAMMING

    Hello,
    I am using a fucntion module GUI UPLOAD to upload a file from pc to SAP .
    I want to upload the details of the file.
    i.e TYPE NAME AND SIZE of the file.
    I am unable to do so.
    Help me.
    Gaur Mayank

    Perhaps you could count this by yourself...
    You could approach the correct size by calculating the number of bytes contained in each rows of your table.
    For this you will first need to upload the file to a table of string, so that each field separator is counted.
    something like:
    DATA: lt_data TYPE STANDARD TABLE OF string,
          l_len TYPE i.
    FIELD-SYMBOLS <data> TYPE string.
    "... gui_upload to lt_data              
    DESCRIBE TABLE lt_data LINES l_len.
    l_len = ( l_len - 1 ) * 2.        "Count 2 bytes at end of each line for CRLF
    LOOP AT lt_data ASSIGNING <data>. "Add length of each line
        l_len = l_len + strlen( <data> ).
    ENDLOOP.
    WRITE: l_len.
    This for a single-byte codepage of course... you can use charlen in order to have the length of one char on your system, here I'm asuming it is 1.
    Kr,
    Manu.

  • Getting the size of a file without reading it

    Hello we are currently implementing a file upload/download framework in our application.
    The framework will included multiple filters such as for file mime types, suffices and size of the file.
    However, for the size filter, we want to check the size without reading it. This is because reading a file which we would later find unacceptable for our application would mean that we are wasting the resources. 
    Since we are currently using an IWDResource object to implement the framework, the method
             IWDResource.getStream(false).available()                                                                                may not come in handy as it seems to read the file to find out its size.
    I need to know whether there is some other method or approach we can emply, using IWDResource object, that will not read the file to find out the size.
    Thanks alot in advance.

    But, it doesn't give me an error, it just gives me the length of the URL, and for some reason it also adds 'D:\jsdk1.4\bin' to the beginning of my URL, so instead of
    File webFile = new File(webFileURL.toString());and you would think that it would be similar code to:
    File webFile = new File("http://66.185.95.103/8989898904/miko17a.avi");but instead, i've checked the File name, and it was
    D:/jsdk1.4/bin/http://66.185.95.103/8989898904/miko17a.avi
    or similar code...
    File webFile = new File("D:/jsdk1.4/bin/http://66.185.95.103/8989898904/miko17a.avi");why does it add the bin folder of my Java SDK to the beginning??? if it didn't do that, everything would be fine...

  • Find out the size of a file?

    I need to program a vi, which appends data to a text file.
    The text file may not become larger that a defined size, so the vi should check the size of the file first.
    How can I do this?
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Solved!
    Go to Solution.

    The LabVIEW palette contains a VI for getting the size of a file, it's called 'Get File Size'
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to change the size of redo file

    Deal all,
    I finish installed the db,and the size of redo file is 50m by default. I found many "checkpoint not complete" events in alert.log file.
    Now i want to change it to 100M and try to avoid the event appear again ,how can i do?

    As Sb has already correct reply that size of redo logs can not be changed. We have to create new bigger/smaller size of redo logs and then 'alter system switch logfile' to inactivate older logs. Now you can drop older logs. Redo logs are something a glass of water. We can not change the size of glass, if we wish to dring more/less water, we will take that sized glass and we will get that sized water.
    Remember to consider the multiplexing/grouping when doing any maintenance like this. And there may be archive log & backup space considerations.
    Hans @ http://dbaspot.com/oracle-server/33231-changing-redo-log-file-size.html
    Regards
    Girish Sharma

  • Checking the size of the image..

    Hi All,
    i have attached am image from using attachments functionality from Purchasing module.
    the image get stored in table fnd_lobs..
    Now i want to know the size of the image..
    whether it is 30kb or 1MB..
    Is there any function in Oracle to calculate the image size..
    We are on 11.5.10.2
    and 11g DB.
    Regards,
    Jana

    Pl see MOS Doc 401094.1 (How To Determine The Size of a File In Table FND_LOBS?)
    HTH
    Srini

  • How can i change the size of PDF files ?

    how can i change the size of PDF files? when i convert documents in the acrobat browser it seems the files become larger then normal pdf files, this is, i compare with other files that people send to me and i realise that they are smaller than my converted files, even if they have more pages.

    A lot depends on the form of the PDF. Is it graphics, a scan of a text file, pure text, or other? What version of Acrobat are you working with.
    You can do a save as to get a WORD file, but do not expect great results. The ability to get a decent WORD file depends on what the form of PDF you are working from. If it was created from WORD with tags and all, you might get good results. If not, you might get a lot of messed up results.
    Explain what you are starting with and your ultimate goal. Also check the audit of the file (should be under PDF Optimize) to see where the file information is concentrated (text, fonts, graphics, other).

  • Checking the size of the object

    Hi all , i need to check the size of the Oracle internal table for the text index created .
    dr $r --table
    option 1:
    SELECT S.bytes Bytes, SYSDATE FROM DBA_SEGMENTS S, DBA_LOBS L WHERE l.TABLE_NAME='DR$TEXT_SEARCH$R' AND l.SEGMENT_NAME=S.SEGMENT_NAME;Option 2:
      select bytes from dba_segments where segment_name='DR$TEXT_SEARCH$R'for 1 i got 7670000000
    for 2 i got 655366
    Which i correct to identify the size of this table

    Hello,
    In fact you have one Segment for the TABLE and another one Segment for the LOB related to this Table.
    Your two queries don't return the same value because they don't deal with the same Segment.
    If you execute the query below, you may see the name of the LOB Segment related to the Table:
    SELECT S.bytes Bytes, S.segment_name FROM DBA_SEGMENTS S, DBA_LOBS L
    WHERE L.TABLE_NAME='DR$TEXT_SEARCH$R' AND L.SEGMENT_NAME=S.SEGMENT_NAME;Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Jun 30, 2010 8:56 AM

  • How do I know the size of a file

    Hi,
    Would anybody please show me how to get the size of a file. for example, I create a file like this
    FileInputStream FINPUT = new FileInputStream ("c:\\testing.prn");
    I need to know the size of FINPUT before using it but I don't know how.
    note: It is not neccessary to use FileInputStream. I can use any stream or file that allow me to check the size and read out the data from the file byte by byte.
    Thanks a lot.
    Hung

    Thank you for your responding. But, how can I read out the data? I need to read the data from the file byte by byte.
    Thanks
    Hung.

  • Maximum size of upload file using Cross Domain Library

    Hi All 
    I need to know what is the maximum size of file that I can upload using Cross Domain Library from my Provider hosted app. I know that in msdn it is written that usign REST call we can upload upto 2GB but I have doubts if it is true with Cross domain library
    REST Calls. Please suggest.
     spExecutor.executeAsync(
                                   url: fileCollectionEndpoint,
                                   method: "POST",
                                   contentType: "application/json;odata=verbose",
                                   body: filedata,
                                   binaryStringRequestBody: true,
                                   headers: { "X-RequestDigest": $("#__REQUESTDIGEST").val(), "accept": "application/json;odata=verbose" ........
    And Can I pass ArrayBuffer directly or I need to pass only binary string ?
    Thanks in Advance 

    Hi,
    According to your post, my understanding is that you want to know the Maximum size of upload file using Cross Domain Library.
    Per my knowledge, you can upload files up to 2 GB with the REST API. 
    You can refer to:
    How to: Upload a file by using the REST API and jQuery
    In addition, you can pass ArrayBuffer directly. Please refer to:
    FileCollection methods
    Thanks,
    Linda Li                
    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]
    Linda Li
    TechNet Community Support

  • How to check the contents of Control file, Log file & Parameter file

    Can anybody help me how i can check the contents of Control file, Log file & Parameter file.
    Arif

    OK ...
    Parameter file:
    It will normally be in the $ORACLE_HOME/dbs directopry. It could be aan init{sid}.ora or a spfile{sid}.ora ... do not edit an SPFILE as yu could corrupt it.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref434
    If it's an init{sid}.ora, use any editor to see the actual content.
    If it's a spfile{sid}.ora, use one of V$PARAMETER, V$PARAMETER2, V$SYSTEM_PARAMETER, V$SYSTEM_PARAMETER2 as aappropriate (read the Reference manual to get an idea about when each is appropriate)
    Control File:
    You should not edit a control file. It consists of many areas, as described here http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#i10135 and each are is interrogated by V$views as given in the reference manual. The following V$views all deal with some aspect of the control file or provide info about the control files or the contents of control files:
    V$ARCHIVE_DEST
    V$ARCHIVED_LOG
    V$BACKUP_ARCHIVELOG_DETAILS
    V$BACKUP_CONTROLFILE_DETAILS
    V$BACKUP_CONTROLFILE_SUMMARY
    V$BACKUP_COPY_DETAILS
    V$BACKUP_COPY_SUMMARY
    V$BACKUP_CORRUPTION
    V$BACKUP_DATAFILE
    V$BACKUP_DATAFILE_DETAILS
    V$BACKUP_FILES
    V$BACKUP_PIECE
    V$BACKUP_REDOLOG
    V$BACKUP_SET
    V$BACKUP_SET_DETAILS
    V$BACKUP_SPFILE
    V$CONTROLFILE
    V$CONTROLFILE_RECORD_SECTION
    V$COPY_CORRUPTION
    V$DATABASE
    V$DATABASE_INCARNATION
    V$DATAFILE
    V$DATAFILE_COPY
    V$DATAFILE_HEADER
    V$DELETED_OBJECT
    V$LOCK
    V$LOG
    V$LOG_HISTORY
    V$LOGHIST
    V$OBSOLETE_BACKUP_FILES
    V$OFFLINE_RANGE
    V$PROXY_COPY_DETAILS
    V$PROXY_COPY_SUMMARY
    V$PROXY_DATAFILE
    V$RMAN_BACKUP_JOB_DETAILS
    V$RMAN_BACKUP_SUBJOB_DETAILS
    V$RMAN_CONFIGURATION
    V$SESSION
    V$TABLESPACE
    V$THREAD
    V$UNUSABLE_BACKUPFILE_DETAILS
    3) Log Files
    The contents of the log files are viewed using LogMiner - read Chapter 11 of the Oracle Utilities manual

  • How can I get the size of a file with apple script

    I try to get the size of a file within an apple script. But I did not find information how to do this.

    There are two ways. I think Apple is moving toward using System Events, which is listed first.tell application "Finder"
    set myFile to selection as alias
    --this just gets a file for me to work with
    --coercing it into an alias is required for the other functions
    end tell
    tell application "System Events"
    get size of myFile
    end tell
    set myInfo to (info for myFile)
    get size of myInfo

  • How to load the data from .csv file to oracle table???

    Hi,
    I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
    Thanks in advance

    981145 wrote:
    Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
    the command is
    sqlldrType it and see if you have it installed.
    Have a look also at the FAQ link posted by Marwin.
    There are plenty of examples also on the web.
    Regards.
    Al

Maybe you are looking for

  • Time machine won't backup

    I've been having a lot of issues with time machine lately. A couple of days back I suddenly got the message that time machine didn't make backups for over 22 days! The first thing I thought was: why am I just now learning about this but okay let's ch

  • ISE 1.2 patch 5 My devices portal not showing regsitered devices

    Hello Guys, I am running ISE 1.2 with all recent patches installed. I have a weird issue where AD users login to mydevices portal and are not able to view any of their registered devices. even thou the devices were successfully registered and onboard

  • Deploy JVMs into different Zones?

    My application is a mul-JVMs application, some JVMs requires more memory than others, e.g. 1G vs. 256M. Since we will upgrade the OS to Solaris 10 which has the Zone techonoly, I want to have some basic guidance on whether it is doable or worthy of d

  • Oracle Pricing- Using Discount Feature

    Hi, I'm Anil Wadhwa and i'm working for Amtrex Hitachi Appliances ltd., Ahmedabad (India). I'm handling the OM Module and I was trying to use the Discount feature availabe in the Oracle Advanced Pricing. As of now we have defined a modifier which we

  • Plug-Ins in a delay feedback-loop

    I would like to set plug-Ins in a feedback loop from a delay plug-In maybe in a simalar way like this: from a audio track "send", i route the send signal in a delay. the delay output goes after in other plugins (filter, reverb, pitch shifter) and com