File Filter on Flex Uploader

Hi,
I would just like to ask for some help regarding my flex
uploader. My problem is I can't filter the file types when i am
uploading. For example I only wanted to see image files (.jpg,
.png, .gif) when browsing files to upload but instead I always get
All file types. Here's my code just in case you need it.
thanks a lot. any feedback would be very much appreciated.

I'm thinking you can file the following under "obvious", so
excuse if it is...
if you only want to see the image file types you mentioned,
you'd have to remove the other file types (*.swf, *.bmp) passed to
the FileFilter constructor. Also, you want to pass an Array to the
browse() function, so use the following in your addFiles()
function:
_refAddFiles.browse(filesToFilter);
and not
_refAddFiles.browse(imageTypes);
On Windows you'll get only the file types listed in the
dialog box and on a Mac you'll see all files, but only the file
types listed will be selectable, the others are grayed out. Don't
know what it looks like on Linux.
TS

Similar Messages

  • How can i Upload Files from my Flex 2.0 Application?

    How can i do a Upload File funtionality with Flex 2.0? Do i
    have to make the component? How is the code in Flex/ Action Script
    to make this possible?. I'm new in this Flex world and it seems to
    me very interesting to make RIA's Applications; in fact i'm making
    a little Employees Application for my company and i'm trying this
    technology and of course i need the functionality that i asking
    for.
    Regards.
    Andres.

    I haven't tried this, but I believe what you could do is
    append
    requestHeaders to the urlrequest object that you pass into
    the file.upload()
    method. The requestHeaders is an array of name/value pairs
    that would be
    included with your post. At least in theory, I believe that
    shoudl work.
    Good luck.
    Phil
    "tantalo" <[email protected]> wrote in
    message
    news:e3q3mt$138$[email protected]..
    > Hi. Phil, how i commented in the forum the examples
    works ok, with a
    > little
    > changes to make a file Upload. Now i have another doubt,
    i need to make a
    > submit of a form with another fields and the file
    selected.
    >
    > I made a HHTP Service for that purpose with the tags
    Requests like:
    >
    > <mx:HTTPService id="empleadoRequest"
    > url="
    http://andresbarrios:8080/directorio/empleados/insertarEmpleado.jsp"
    > useProxy="false" method="POST">
    > <mx:request xmlns="">
    >
    <empresa>{empresa.selectedItem.data}</empresa>
    >
    <ubicacion>{ubicacion.selectedItem.data}</ubicacion>
    >
    <departamento>{departamento.selectedItem.data}</departamento>
    > <cedula>{cedula.text}</cedula>
    > <nombre>{nombre.text}</nombre>
    > <apellido>{apellido.text}</apellido>
    > <!--Falta Fecha de Nacimiento -->
    > <sexo>{sexo.selectedItem.data}</sexo>
    >
    <estado_civil>{estado_civil.selectedItem.data}</estado_civil>
    >
    <telefono_celular>{telefono_celular.text}</telefono_celular>
    > <extension>{extension.text}</extension>
    >
    <correo_electronico>{correo_electronico.text}</correo_electronico>
    > </mx:request>
    > </mx:HTTPService>
    > I have the global variable called "file" that contains
    the file selected.
    > I
    > want to send this file variable in the HHTPservice call
    EmpleadoRequest,
    > can i
    > do that with a Request tag like another field? or the
    only way is trougth:
    > file.upload(upload.cfm) ?;
    >
    > I want only make a one call to the server to submit the
    fields of the form
    > and
    > to upload the file at th e same time can you help me How
    can i do that?
    >
    > Thanks.
    >
    > Regards.
    >
    > Andres.
    >
    >
    >

  • Obiee upload file filter

    Hi,
    In Obiee 11g, i'am using the new functionnality of file uploading. However, i would kniw if it's possible to do add a file filter? I want only .doc files to uploaded.
    Thanks.

    OK,
    Using firebird, i found the right JS file. I didn't finished the filter yet because i have also to check that i am in the right folder but i think i am in the right way.
    Thanks.
    However, if a new patch is installed, there is a risk to have my customizations delete. There is way to prenvent this ?

  • Flex upload problem - Help!

    Hi. I've got a JSP page that works fine when I upload a file
    to it from another JSP page, using simple Browse and Submit
    buttons. I've deployed the Flex 3 SWF to the same folder as the JSP
    page and am trying to upload a file from the Flex app and keep
    getting this error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File
    I/O Error.
    at
    TV_Schedule()[C:\flexTest\_workspace\TV_Schedule\src\TV_Schedule.mxml:9]
    at _TV_Schedule_mx_managers_SystemManager/create()
    at
    mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:2438]
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\3.0.x\frameworks\proj ects\framework\src\mx\managers\SystemManager.as:2330
    On the Tomcat server's error log, it has the following,
    [Fri Aug 22 12:16:19 2008] [error] [client xxx.xxx.xx.xxx]
    mod_security: Access denied with code 403.
    Error processing request body: Multipart: final boundary
    missing [hostname "myhost.mydomain.org"] [uri
    "/myfolder/upload.jsp"]
    I've read that if we put the following in an .htaccess file
    in the root, it will get rid of the problem,
    SecFilterEngine Off
    SecFilterScanPOST Off
    However, this opens us up to all kinds of attacks. I've read
    that the "Multipart: final boundary missing" is a known issue. Is
    this true? Are there documents on this? Will the next version of
    Flex fix this?

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    All Classes (Flex 3):
    mx.automation, The Flex automation framework uses the
    AutomationID class to ..... The FileReference class provides a
    means to upload and download files
    Link:
    http://livedocs.adobe.com/flex/3/langref/class-summary.html
    Flex cookbook beta - Uploading files from Flex using PHP:
    Flex cookbook beta - Code a control so that end users can
    upload a file ... text=Error #2038: File I/O Error. And the
    permissions for the folder are 777 so
    Link:
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=5241&produ ctId=2
    F (Flex 3):
    The FileReference class provides a means to upload and
    download files ...... handle error messages, and bind your form
    data to the Flex data model to
    Link:
    http://livedocs.adobe.com/flex/3/langref/all-index-F.html
    Flex Solutions:
    MORE FLEX FRAMEWORK LIBRARIES AND UTILITIES. 709. 12.
    Excerpted from Flex Solutions, .... invoked if an error occurs in
    the upload phase of the file:
    Link:
    http://www.adobe.com/devnet/flex/articles/upload_files/uploading_files_to_the_server.pdf
    [#FP-292] uploading of files: io error 2038 on Apache - app
    ok on:
    Actual Results: Expected Results: Upload file Workaround (if
    any): ... This error is also seen when using Flex 3 and has been
    pending for a really long time
    Link:
    http://bugs.adobe.com/jira/browse/FP-292
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • How does flex upload works

    Hi,
    I have created a flex web application with php server side support. There is a file upload functionality in this webside. When I'm uploading a file using flex upload controller does it uses a huge amount of memory from the client machine that uploads the file? and how does flex controller transfer the file to server (upload the whole file at once, upload as chunks) ?
    Cheers!! 

    Hi,
    Refer links:
    http://download.oracle.com/docs/cd/B19306_01/em.102/b16227/oui8_opatch.htm
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/e15294/prereq_checks.htm
    http://avdeo.com/2008/08/19/opatch-utility-oracle-rdbms-patching/
    thanks,
    X A H E E R

  • How to set file filter in FileUpload?

    Is there any way to set the file filter on FileUpload? Let's say, I only want the user to see all .xml files. Currently, the default is all files of any extension are displayed.
    Thanks. c",?

    The dialog which appears is solely controlled by the browser. I don't see a way to set the file filter to this dialog.
    You can read more about file upload here.
    http://jakarta.apache.org/commons/fileupload/using.html
    - Winston
    http://blogs.sun.com/winston

  • File Chooser in Flex

    I want to make a file chooser that can allow me to choose
    (Browse) where's the file that i want to upload. Anyone know how to
    create a file chooser with flex builder 2 ? I'm very appreciate for
    any answer.

    Here is an example that will make a file browser to choose
    either an image or mp3 file:
    private var upload_ref:FileReference;
    private function upload_media():void {
    var media_filter:FileFilter;
    var filter_array:Array = new Array();
    media_filter = new FileFilter("Images (*.jpg, *.jpeg, *.gif,
    *.png)", "*.jpg; *.jpeg; *.gif; *.png");
    filter_array.push(media_filter);
    media_filter = new FileFilter("Audio (*.mp3)", "*.mp3");
    filter_array.push(media_filter);
    upload_ref = new FileReference();
    upload_ref.browse(filter_array);
    upload_ref.addEventListener(Event.SELECT, file_selected);
    private function file_selected(evt:Event):void {
    if (upload_ref.name != null &&
    upload_ref.name.search(" ") == -1 &&
    upload_ref.name.search("'") == -1) {
    var sendVars:URLVariables = new URLVariables();
    sendVars.file_path = "/path_on_server_to_upload_to";
    var request:URLRequest = new URLRequest();
    request.url = "
    http://yourserver.com/upload_php_script.php";
    request.data = sendVars;
    request.method = URLRequestMethod.POST;
    upload_ref.addEventListener(Event.COMPLETE, completeUpload);
    upload_ref.upload(request);
    } else {
    Alert.show("File name can only include letters, numbers or
    underbars. No spaces.");
    Vygo

  • Set file filters in flex for save, not for browse

    How can i set file filters in flex for save, not for browse?
    Right now i am using filereferce class for saving purpose but i could
    not able to set filter. We can easily do it for browse.

    You can try to delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    Create a new profile as a test to check if your current profile is causing the problems.
    See:
    * [https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile Basic Troubleshooting: Make a new profile]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See:
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • PL20 flexi upload issue

    Hi All,
    When we uploaded the file using flexi upload for posting level 20, system is reading the data properly but at the same time system is posting correction reversal entries for the same. Eg if i'm uploading the file with 100 INR system is posting the amount and again system is posting the correction document for -100 INR. Kindly help us in resolving this issue.
    We have created a flexi upload for PL20 entries, in which we created a seperate method and task for the same. And in task we have defined the processing type as two sided, created a field catalog in flexible upload. Please let us know if you need further details.
    Regards,
    Magesh

    Hi Collet,
    In Task, we use cons freq- monthly, proc. type two sided, cons. group- all values. In method we have defined DCP flexible upload w.r.t method and doc. type. In flexible upload field category we have defined the respective fields as per the manual journal entry screen.
    Yesterday only i configured flexi upload for PL20. In my total records during the first PL20 flat file upload, items were reversed with text CORR and in which most of the amount are w.r.t clearing a/c.
    Kindly let me know if you want further details.
    Regards,
    Magesh

  • Auto selection of file from folder during uploading??

    Hi all friends,
    Iam facing with one problem I am developing one uploading software for that i have used swing and servlet.Now my problem is i want to give auto selection of file from one folder means user just copy the files from any computer on network and paste it in predefind folder.And when they click on upload button it should start uploading of file one by one and after completion of uploading it move that file into another folder one by one.Now my software doing it perfectly but if user copy and paste any file in that predifined folder from network computer during uploading then they have to click upload button again after completion of first queue of files(for example if user first copy 10 files and start uploading and inbetween uploading of that 10 files if user copy another 10 files from network computer then they have to click on upload button again after completion of uploading of first 10 files).But my user requirement is they want to click on upload button once only at the time of starting my application and my application automatically select the file one by one from folder and send it to destination.Means if they copy the file from network machine inbetween uploading or any other user from network send file in that folder then my application should select those file automatically and start uploading means they don't want to click on upload button again.Can any one plz guide how I can slove this problem.Below r my codes:-
    Upload.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    suspendflag=true;
    Resume.setEnabled(false);
    Suspend.setEnabled(false);
    dest=frame.m_txtURL.getText();
    File ff=new File("d:\\DTMS\\Upload");
    File[] files = ff.listFiles();
    fileList = new Vector();
    if(files == null)
    textArea.append("There is no file");
    return;
    else
    for (int j = 0 ; j< files.length ; j++)
    fileList.add(files[j]);
    java.util.Collections.sort(fileList, new FileComp());//sorting by size
    new Thread(new Runnable() {
    public void run(){
    for (int k = 0; k < fileList.size(); k++)//loop for queue {
    File fname = (File)fileList.get(k);
    String str=fname.getName();
    log("Destination:" +" "+ dest);
    log("Uploading Progress\nPlease Wait....");
    result=doPost(fname,dest);//method for read file & send to servlet
    String str2="Transfer apparently failed.";
    String str3=result;
    if(str2.equals(str3)){
    Error(result);
    else if(suspendflag==true){
    File newfile =new File("d:\\DTMS\\Archives\\"+str);
    fname.renameTo(newfile);
    log("File" +" "+ str+" "+"Upload Completed !");
    else if(suspendflag==false){
    Error("** Transfer Suspended**");
    }).start();
    }catch(Exception exp)
    Error("Error : " + exp.toString());
    Regards
    Bikash

    Hi Chandan,
                        All the multiselection files are stored in it_tab( i:e file_table in method). you need to loop the every record to upload the data for selected files. please check the code Below...
    DATA: file_str1 type string.
    data: it_tab TYPE STANDARD TABLE OF file_table,
           wa_tab TYPE file_table,
           lw_file LIKE LINE OF it_tab,
           gd_subrc TYPE i.
    SELECTION-SCREEN begin of block blk with frame title text-100.
    SELECTION-SCREEN SKIP 2.
    parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
    window_title = 'Select only Text File'
    default_filename = '.azt'
    multiselection = 'X'
    CHANGING
    file_table = it_tab
    rc = gd_subrc.
    *READ TABLE it_tab INTO lw_file INDEX 1.
    *p_file = lw_file-FILENAME.
    Start-of-Selection.
    loop at it_tab INTO wa_tab.
       file_str1 = wa_tab-FILENAME.
    CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
       tables
         data_tab                      = it_string
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.

  • My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem.

    My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem. The only thing that solves it is switching off and on , but sometimes I have to do that for 6-7 times before its ok or wait for a few hours. Some help please

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Revel Error Message: "Some files could not be uploaded."

    Error Message: "Some files could not be uploaded. 1 file was unable to be uploaded and was skipped." I am a Revel user from its inception. I have never had upload errors before in Adobe Revel. I am trying to upload jpeg files in the same way I have done for months, which is by dragging and dropping files directly into an album I have created. Starting yesterday, only some files upload properly. Others receive the above error message. When I have tried to re-upload the jpegs which have not gone, I receive either the same error message or a slightly different error which indicates the files are not uploading because they are duplicates. They're not duplicates and appear nowhere else in my Revel albums. I have rebooted my Window 7 PC, I have repeatedly logged out and back into Revel. I have tried both Firefox and IE. I have tried creating new albums and uploading the failed files to a new album. I have cleared my Firefox cache. I have tried both the "drag and drop" feature and the "Add Photos or Videos" button in Revel. I have tried using the "Export to Revel" feature in Adobe Photoshop Elements 11. I have tried uploading never-before-attempted files, and - on average - only 25% of those brand-new files are uploading. I am a subscriber and pay for the Revel service, so I am not bumping into any upload quotas. I have read through these forums and have found problems similar to mine as far back as May 2013, but none of the problems ever seem to have been resolved other than the users simply giving up. Can you help? I am becoming increasingly confused with respect to which files have succeeded and which files have failed. Thank you. -Dori

    Yvonne-
    You can have many libraries with many albums and files within them. Each library is independent, so if you upload a file to two libraries then you two copies. If you put a photo from a library in albums that live within that library, then there is only one copy in the library that each album has access to so it will show up when you view the album. This might help : http://forums.adobe.com/message/5197228#5197228.
    I found a few incomplete files in your account also. We will take care of this for you and contact you when it is complete.
    Pattie
    Some of these links might also be useful to you:
    Revel FAQ’s:
    http://forums.adobe.com/community/revel/faq
    especially:
    FAQ: Where can I learn tips and tricks about Revel? http://forums.adobe.com/message/5798092#5798092
    FAQ: How do I share my photos in Revel? http://forums.adobe.com/thread/1295026
    FAQ: How do I add (upload) files to revel? http://forums.adobe.com/thread/1162795?tstart=0

  • Function module to choose the file for download and upload

    what is the function module to choose the file for download and upload  for presentation server.
    give me with example

    Please search in SCN.
    This has been discussed so many times.

  • Error Message: "A virus was detected in FILENAME. This file will not be uploaded"

    I have been synching files using Creative Cloud Connect for many months. During the past few weeks, I get the message "Some files failed to sync". When I click on "Learn more", it has 3 files there and all have the message "A virus was detected in filename . This file will not be uploaded". I scanned all three files with AVG and Malwarebytes (installed on my system) and both report that there is no virus in those files. I have tried to chat with support but I could not find any resolution with them. I believe that I never got to the right place. I was connected with 5 different people. At the end of the last discussion I spoke to Adobe Captivate support. It so happens that the files with that error are all Adobe Captivate files. But that support also concluded that they couldn't help. I could not find similar entries in the forums either. Did anyone else have this problem?
    I appreciate any help.
    Angela

    No unfortunately, I have not.  I spent over an hour on the phone with them already regarding this topic. In the end, the support in Adobe Captivate (that's the 5th support group they connected me to) told me that I wasn't allowed to upload Captivate files since Adobe Captivate 8 is not a CC application and that's why the problem was happening. I am absolutely sure that this is untrue since I have many Captivate files on CC. I think the key will be to get to the right support group. Good luck! I really hope you find a solution. Keep me informed. Thanks.

  • Virus Detected (403), Your file could not be uploaded because it contains a virus.

    From a Windows 7 Ultimate PC I tried to upload a PDF portfolio containing 35 PDFs. The upload failed with the message "Virus Detected (403), Your file could not be uploaded because it contains a virus."
    It is highly unlikely that this PDF portfolio or its 35 PDFs contain a virus. It passed a scan by Microsoft Security Essentials. Any suggestions?
    Bill

    Hello,
    I've got the same 403 error when I want to upload a ebook (purchased on peachpit, see this url for ebook), but when I scan it (windows 8 / avast) no virus found.
    Olivier

Maybe you are looking for

  • Impossible to install icecat (solved)

    Hello, When I try to install icecat, the console says: $ yaourt -S icecat ==> Téléchargement du PKGBUILD de icecat depuis AUR... bsdtar: Removing leading '/' from member names x xulrunner-copy-stub.patch x PKGBUILD x mozilla-firefox-1.0-lang.patch x

  • Issue in spool output

    Hi all, I have one issue in the spool output. In the spool output I see some strange results. At the first column the values COL1N, COL1H, COL0N, COL0H, COL2N .... were getting displayed at the first column in every row. Any one of the above values w

  • Reconnected my landline going back to dial up

    It may seem crazy that I'm taking a step back when so many of you are blogging for faster speeds, but I too am hoping for faster speeds.  It's true that I have access to high speed internet through wireless, but it comes with a price- paying $400+ fo

  • Line Profile lowering for no reason.

    Over the past 3 weeks my line profile has dropped from 77.44 to 70.33 and now is at 65.35. My line has no noise and there is nothing extra running that could could cause the drop. I use only one PC that is wired by ethernet cat6 to the router. Reseti

  • No camera found!!!

    Hi all, I had my iSight running for playing around when I first received my MacBook. Everything worked fine. After installing the rutine updates I'm now running on Systemversion: Mac OS X 10.4.8 (8L2127) Kernel-Version: Darwin 8.8.1 Startvolume: Maci