How to filter the file type and size during uploadind files in APEX

Hello

I was wondering how I can do to validate the size of a file, before moving in my table? I want to filter the type of file, 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 size of the file, even before sending it into the temporary table.

Thank you

Bodart
Advertisement

Hi salma,

As far as I KNOW, you need to create a validation APEX (PL/SQL Returns Boolean or returns error text), which interrogate the details of the table apex_flow_files file. Here you can get the file type and size etc.

So just to validate and if the validation fails, then delete the apex_flow_files and riase error message file.

Kind regards
Hari

P.S. Please note that, if there are other validations apex on your page, and if they fail, always apex will load the file in the apex_flow_files table. It is sensible to create a validation (PL/SQL) that will trigger (condition) when online validation errors occurred. Make sure it is the LAST commit on your page in the sequence. And here you can write code to delete the table apex_flow_files.

Published by: Hari_639 on Sep 20, 2012 22:09

Tags: Database

Similar Questions

  • How to specify the font type and size (in points)

    I often cut and paste from Word, Excel, or web pages in e-mail messages in TB. TB often done strange things, which the text is copied in it, making the text bigger or smaller and I can't understand how to change it. While I understand how to change the font (through Format |) (Police), the resize options are limited to the x-small, small, medium, etc. (Screen attached). My goal is to have the text I copy matches the size and font that I use to compose the rest of the email, but I find it almost impossible to do when my only options for size are x-small, small, medium, etc. Any suggestions?

    I suggest you paste by using 'paste unformatted' (ctrl + shift + v, or in the edit, or on the context menu) to make any case adopts and adapts to the development shaped by default resident.

    Use of the stationery add-on would allow you to define your styles in points, but I think it's misplaced effort. You have no say in what your correspondents to view your messages, what personal preferences that they apply or what limits their devices assert. Try to fix it with explicit sizes is ultimately useless to your correspondents. 'Medium' means that they see the message to the size that they want, not what you inflict on them.

  • How you set the font style and size as the norm for the e-mail that is sent and received?

    I, too, have this problem. Am using Outlook.

    Separated from -.

    https://answers.Microsoft.com/en-us/Windows/Forum/windows_8-desktop/how-do-you-set-the-font-style-and-size-as-the/d48a95c5-68a1-4766-873d-d9924004feab

    Outlook policies can be changed in options.

    1. On the file menu, click Options
    2. Go to the mail section, and then click stationary and fonts
    3. Choose your fonts

  • How to recover the disc type and geometry of the disk on an optiplex gx260

    the disc type and the disc geometry has changed in the program of installation-F2 is NOT HOW they GOT CHANGED? OptiPlex gx260

    Hi TrumanFowler,
     
    See if this manual can guide you:
     
     
    Contact the system manufacturer for assistance on this issue.
     
    Visit the following link to do the same thing:
  • How to get the outline color and size of the rectangle?

    Hi all

    I'm developing an extension for CS5 and higher (including the CC version). I want to get the outline color and size of a rectangle. I was able to do in CS5. But I noticed that in the version of the CC, there are two ways in which the user can apply to a stroke. One is by applying the effect in the layer Style, and the other through the properties panel. I am able to get the values of time in my script, if it is applied through layer Style, but I can't do it in the other scenario.

    How are these two different traits and how do I get the outline color and size if it is applied via the properties panel using script?

    Thank you!

    Here's what I have so far. It takes more work, but I don't think that's never very accurate.

    function toggleOtherLayersVisibility() {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        desc.putBoolean( charIDToTypeID('TglO'), true );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    };
    function liveShapeFillEnabled( enable ) {// boolean
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( stringIDToTypeID('contentLayer'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
            var shapeDesc = new ActionDescriptor();
                var styleDesc = new ActionDescriptor();
                styleDesc.putInteger( stringIDToTypeID('strokeStyleVersion'), 2 );
                styleDesc.putBoolean( stringIDToTypeID('fillEnabled'), enable );
            shapeDesc.putObject( stringIDToTypeID('strokeStyle'), stringIDToTypeID('strokeStyle'), styleDesc );
        desc.putObject( charIDToTypeID('T   '), stringIDToTypeID('shapeStyle'), shapeDesc );
        executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    };
    function dupeVisibleMerged() {
        var desc = new ActionDescriptor();
        desc.putBoolean( charIDToTypeID('Dplc'), true );
        executeAction( charIDToTypeID('MrgV'), desc, DialogModes.NO );
    };
    function loadTransparency(){
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putProperty( charIDToTypeID( "Chnl" ), charIDToTypeID( "fsel" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
            var ref1 = new ActionReference();
            ref1.putEnumerated( charIDToTypeID( "Chnl" ), charIDToTypeID( "Chnl" ), charIDToTypeID( "Trsp" ) );
        desc.putReference( charIDToTypeID( "T   " ), ref1 );
        executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
    };
    function getLiveShapeStrokeInfo(){
        var doc = app.activeDocument;
        var lyr = doc.activeLayer;
        liveShapeFillEnabled( false );
        toggleOtherLayersVisibility();
        doc.artLayers.add();
        dupeVisibleMerged();
        var bounds = doc.activeLayer.bounds;
        var horzCenter = (bounds[2]-bounds[0])/2;
        var vertCenter = (bounds[3]-bounds[1])/2;
        lyr.visible = false;
        var sampler = doc.colorSamplers.add([bounds[0]+UnitValue(.5,'px'),bounds[1]+vertCenter]);
        sizeObject.color = sampler.color;
        loadTransparency();
        doc.selection.select([
                                [bounds[0],bounds[1]+vertCenter],
                                [bounds[0]+horzCenter,bounds[1]+vertCenter],
                                 [bounds[0]+horzCenter,bounds[1]+vertCenter+UnitValue(1,'px')],
                                 [bounds[0]+UnitValue(1,'px'),bounds[1]+vertCenter+UnitValue(1,'px')]],SelectionType.INTERSECT);
    
        sizeObject.size = doc.selection.bounds[2]-doc.selection.bounds[0];
    };
    var sizeObject = {};
    app.activeDocument.suspendHistory('Get Live stroke info','getLiveShapeStrokeInfo()');
    executeAction( charIDToTypeID('undo'), undefined, DialogModes.NO );
    sizeObject.size;
    
  • How can I permanently change the default font and size in outgoing emails in Hotmail?

    I can't figure out how to set the default font and size for the text of all of my outgoing Hotmail emails.  Help!

    Hello

    Please repost your question in hotmail in the hotmail link below forums

    http://windowslivehelp.com/product.aspx?ProductID=1

  • How to import a layer that will have the same place and size that I have chosen?

    I have a lot of web to create files.

    All the products I have, can be chosen in 8 different sizes. And for each product and sizes, I need to put them in a room set file and then save it as a web file.

    or 10 products = 80 different web files.

    Each product to a particular size should be placed in the same area in the game room and have the same effect.

    For this, I have:

    1. create a bedroom set

    2. create models with sizes right for products to be included in the entire room (up to 8).

    3.I have created a series of actions for all sizes. Size of the image including the canvas size and export to a folder to have a layer for each product sizes.

    4.I need then to charge batteries to create a group and drag - move these files to the whole of the room.

    5 then I paste effects on all the layers in the group.

    6.I moved all layers in the right place, as a result of my models.

    So, I would avoid some steps of this... Because I have 100 products, so 800 files to create.

    If I can find a way to import (swap file one by one in the same place and sizes, she will avoid steps 3, 4 and 6, which will make my life much easier...)

    NB. Or remarks that helps...

    Hope this is not too complicated... and thank you for your help

    Jean

    If I understand correctly, you already have a common framework for all 100 products.

    For each product, you already have 8 image sizes to be placed in the parameter.

    If this is the case, the Variables can be the most convenient option that, once the model and tab delimited file are created, the placement of all the images of 800 would we automatic, accurate and extremely efficient both. Even if you work with images, I suggest rather than images and the type you watch the video and look at how it can be applied to your project.

    PS CS5 - working with Variables | The complete picture with Julieanne Kost. Adobe TV

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to open the files .fxm and .fxr with fax windows 7 & scan?

    How to open the files .fxm and .fxr with fax windows 7 & scan?  These faxes have been received when I had Windows XP.

    Hello

    A file with FXR and FXM file extensions is a Document received from WinFax.

    You can open the FXR and FXM file by double clicking on it and let your PC decide which default application should open the file.   If no program opens, the FXR and FXM file, then you have probably an installed application that can view and/or edit FXR and FXM files.

    You can use a Notepad or another text editor to open these files.  Number of files is files read-only, which means little matter file extension, a text editor may be able to view the contents of the file properly.  This may or may not be the case with FXR and FXM files, but it's worth a try.

    How a FXR and FXM files:
    There are two ways to try to convert a file to a different file type:

    a. open the FXR file in its default program and choose to save the file open in another file format.

    b. use a softwarefrom online file conversion to convert these files to another file format.

    Note:
    using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Thank you

  • The word file I saved became a shortcut! and I can't open the file. How to restore the file?

    The word file I saved became a shortcut! and I can't open the file. How to restore the file?

     
    Original title: shortcut word file

    It is a problem of "file association".  Here is the complete list of all the "file Association" steps I've seen has proved useful before. There is no need to go beyond the stage that solved the problem, but all the "about your computer" & Microsoft controls are very well to do anyway - they would not hurt even if he did not fault.  Most people seem to go directly to the last in the list.

    On your computer

    Run both the troubleshooters maintenance & Control Panel Performance, troubleshooting. [this is just a cleanup operation before more useful steps]

    Control Panel, programs by default, set your default programs and associate any type of file or Protocol with a program

    [Check IE only] Options Internet explorer, tools, Internet, programs - set are lacking

    Microsoft links [read the descriptions on the first linked pages]

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    FixIt when you run an .exe on a Windows Vista-based or Windows 7 computer file, the file may start another program

    Diagnose and repair Windows files and folders problems automatically

    Return to another on your computer

    Run the System File Checker How to use the tool File Checker system to troubleshoot missing or corrupted system files on Windows Vista or Windows 7 There is additional guidance on this subject in sfc.exe/scannow

    and then, if necessary,

    3 party links [read the descriptions on the page linked first of all to make sure it matches your symptoms - only this get you far if you]

    Default File Type Associations - restore - Windows 7 forums

    http://www.slipstick.com/problems/link_restrict.htm

    Could not open the folders or drives "this file has no related... program. »

    Patches for Windows 7 file association -Most people seem to go directly to this one

    Good luck.

  • Windows 8, 32-bit: how to cancel the file history and use the USB for the sole purpose Ready Boost

    By mistake, I clicked file history on. The USB key used for ready boost is selected and that the disk is write protected. Windows 8, 32-bit: how to cancel the file history and use the USB for the sole purpose Ready Boost. I don't have an another USB suitable for ready boost.

    Hello

    You should be able to disable the history of files by using the local Group Policy Editor.  Consult this publication of the article.  Use the #2 option.

  • All of a sudden I've locked the folders and files on my system. How to unlock the files?

    I'm as Windows 7 Home Premium 32-bit slot. All of a sudden I've locked the folders and files on my system. I am the administrator and the only user of my computer. What happened to cause this? How to unlock the files?

    I right click on them and there is no label of 'ownership '.

    Angi

    Hello

    ·          How do you lock the folders?

    ·          The question came with all the files and folders?

    Step 1: Here's how you can take ownership of the files/folders

    a. right click on the file or folder and then click Properties.

    b. click the Security tab.

    c. click on a user name or group under group or user names.

    http://Windows.Microsoft.com/en-us/Windows7/what-are-permissions

    Step 2: Run the fix it to http://support.microsoft.com/mats/windows_file_and_folder_diag/

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows 8.1 in Adobe Illustrator, I tried to copy my design & tried to paste it, but after sticking the image (file), now the color looks different, drive and lighter. So, kindly inform how to paste the file with 100% same resolution / color / appeara

    Windows 8.1 in Adobe Illustrator, I tried to copy my design & tried to paste it, but after sticking the image (file), now the color looks different, drive and lighter. So, kindly inform how to paste the file with 100% same resolution / color / appearance. Thank you.

    Hi GANESHKUMARAPILLAI CHRYSTELLE,.

    Here is a link for color management workflows in Illustrator.

    It is best to place the image instead of paste into Illustrator. When you paste the images they are in RGB color format. Make sure your document is a RGB file

    Click on these links for more information.

    Understand the workflow of the CC of individual course Illustrator color management: Advanced

    Creative Suite * keeping colors consistent

    Implement the print color management workflow. Illustrator, InDesign, Photoshop

    Concerning

    Scott

  • How to check the file for the virtual machine size Esxi shell

    Anyone who can tell me how to check the file for the virtual machine size Esxi Shell. I tried this command-h ls but does not work.

    Have you checked "ls-lh', it will provide information as the attached screenshot." "

  • How to give the necessary time and unite all files of images together?

    Adobe first Pro 7.2.1 CC

    I insert image PNG files in pieces of the track for example 50 and got dry duration for each Image at 06:07. I need 00.03 for each of them make an animation so I have to cut and drag each of them separately. How to give the required duration and unite all together faster?

    Before you import the files again (e.g.: PNG), go to Preferences > General > still Image default duration:

    You can set the default there. This will apply to the newly imported files, but (it will not apply to the files that you have already imported).

Maybe you are looking for