Anyone use Flex with php for file upload? PHP Notice:  Undefined index:  Filedata

My code works. It uploads the file and inputs the file name into a database, but I can't shake this php notice. I think php is looking for multipart/form-data from the HTML form tag.
<form action="upload.php"  enctype="multipart/form-data"/>
But I am using flex. The multipart/form-data info is sent as the second default argument of the upload() function. Does anyone have experience with this? Thanks.
PHP Notice:  Undefined index:  Filedata
$filename = $_FILES['Filedata']['name'];
public function selectHandler(event:Event):void {
                request = new URLRequest(UPLOAD_DIR);
                try {
                    fileRef.upload(request);
                    textarea1.text = "Uploading " + fileRef.name + "...";
                catch (error:Error) {
                    trace("Unable to upload file.");
                    textarea1.text += "\nUnable to upload file.";

Hi, Thanks for your reply !
Im not getting any errors Flex side, as i say i get a alert message saying the file has been uploaded so . .
I am using a Wamp server on a windows machine, how do i check the file permissions on both the folder and the php file ?
Also how do i debug a php file ?
ANy help would be thankful !

Similar Messages

  • Anyone use CS3 with Win7 offline file syncing?

    I just recently upgraded to the 64-bit version of Windows 7. It has a feature that allows you to cache network files to your hard drive for working on when you are disconnected or have a slow connection with the network (Sync Center) and can be convienient for people like me who telecommute. Most applications seem to work with this, but I've found when trying to save a file from Photoshop CS3 onto this shared drive when its in offline mode results in an error saying the file name was not valid (the file name is valid and can be saved to my harddrive normally). Likewise when I try to save a file to this shared drive in offline mode in InDesign it says that it can't save "under a new name".
    Anyone else having this issue or know how to resolve it short of not using the Sync function in Windows?

    I am suddenly getting that same message. "The file name is not valid" - and up until a few minutes ago, it was a valid name.
    But I am using Reader X and Windows 7

  • BAPI functions for file upload

    Hi All,
    can anyone  tell me Bapi functions for the file or image upload using?
    With best regards,
    Suneetha

    Hi,
    Uploading LOGO in SAP
    http://www.sap-img.com/ts001.htm
    Upload graphics on
    The program RSTXLDMC can be used to upload graphics (file extension .tif on PC files) into individual standard text.
    <b>ws_upload</b>
    Transfer files from the frontend to the application server.
    Rgds,
    Prakash

  • BI IP --- Planning function for File Upload

    Hai All,
    In BI IP , When I am trying to load the data (text file) by using Planning function for File Upload. I am getting an error message When I am clicking on Update .
    Error Message : Inconsistent input parameter (parameter: <unknown>, value <unknown>).
    In Text file I am using Tab Separation for each value
    Anyone help me out.
    Thanks,
    Bhima

    Hi Bhima
    Try one of these; it should work:
    1. If you are on SP 14 you would need to upgrade to SP 15. It would work fine
    2. If not, then -
         a] apply note 1070655 - Termination msg CL_RSPLFR_CONTROLLER =>GET_READ_WRITE_PROVIDS
         b] Apply Correction Instruction 566059 [i.e: in Object - CL_RSPLFR_CONTROLLER GET_READ_WRITE_PROVIDS,
    delete the block: l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = p_infoprov ).
    and insert block - l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = i_infoprov ).
    Goodluck
    Srikanth

  • Has anyone used JAAS with WebLogic?

    Has anyone used JAAS with Weblogic? I was looking at their example, and I have a bunch of questions about it. Here goes:
    Basically the problem is this: the plug-in LoginModule model of JAAS used in WebLogic (with EJB Servers) seems to allow clients to falsely authenticate.
    Let me give you a little background on what brought me to this. You can find the WebLogic JAAS example (to which I refer below) in the pdf: http://e-docs.bea.com/wls/docs61/pdf/security.pdf . (I believe you want pages 64-74) WebLogic, I believe goes about this all wrong. They allow the client to use their own LoginModules, as well as CallBackHandlers. This is dangerous, as it allows them to get a reference (in the module) to the LoginContext's Subject and authenticate themselves (i.e. associate a Principal with the subject). As we know from JAAS, the way AccessController checks permissions is by looking at the Principal in the Subject and seeing if that Principal is granted the permission in the "policy" file (or by checking with the Policy class). What it does NOT do, is see if that Subject
    has the right to hold that Principal. Rather, it assumes the Subject is authenticated.
    So a user who is allowed to use their own Module (as WebLogic's example shows) could do something like:
    //THEIR LOGIN MODULE (SOME CODE CUT-OUT FOR BREVITY)
    public class BasicModule implements LoginModule
    private NameCallback strName;
    private PasswordCallback strPass;
    private CallbackHandler myCB;
    private Subject subj;
             //INITIALIZE THIS MODULE
               public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
                      try
                           //SET SUBJECT
                             subj = subject;  //NOTE: THIS GIVES YOU REFERENCE
    TO LOGIN CONTEXT'S SUBJECT
                                                     // AND ALLOWS YOU TO PASS
    IT BACK TO THE LOGIN CONTEXT
                           //SET CALLBACKHANDLERS
                             strName = new NameCallback("Your Name: ");
                             strPass = new PasswordCallback("Password:", false);
                             Callback[] cb = { strName, strPass };
                           //HANDLE THE CALLBACKS
                             callbackHandler.handle(cb);
                      } catch (Exception e) { System.out.println(e); }
         //LOG THE USER IN
           public boolean login() throws LoginException
              //TEST TO SEE IF SUBJECT HOLDS ANYTHING YET
              System.out.println( "PRIOR TO AUTHENTICATION, SUBJECT HOLDS: " +
    subj.getPrincipals().size() + " Principals");
              //SUBJECT AUTHENTICATED - BECAUSE SUBJECT NOW HOLDS THE PRINCIPAL
               MyPrincipal m = new MyPrincipal("Admin");
               subj.getPrincipals().add(m);
               return true;
             public boolean commit() throws LoginException
                   return true;
        }(Sorry for all that code)
    I tested the above code, and it fully associates the Subject (and its principal) with the LoginContext. So my question is, where in the process (and code) can we put the LoginContext and Modules so that a client cannot
    do this? With the above example, there is no Security. (a call to: myLoginContext.getSubject().doAs(...) will work)
    I think the key here is to understand JAAS's plug-in security model to mean:
    (Below are my words)
    The point of JAAS is to allow an application to use different ways of authenticating without changing the application's code, but NOT to allow the user to authenticate however they want.
    In WebLogic's example, they unfortunately seem to have used the latter understanding, i.e. "allow the user to authenticate however they want."
    That, as I think I've shown, is not security. So how do we solve this? We need to put JAAS on the server side (with no direct JAAS client-side), and that includes the LoginModules as well as LoginContext. So for an EJB Server this means that the same internal permission
    checking code can be used regardless of whether a client connects through
    RMI/RMI-IIOP/JEREMIE (etc). It does NOT mean that the client gets to choose
    how they authenticate (except by choosing YOUR set ways).
    Before we even deal with a serialized subject, we need to see how JAAS can
    even be used on the back-end of an RMI (RMI-IIOP/JEREMIE) application.
    I think what needs to be done, is the client needs to have the stubs for our
    LoginModule, LoginContext, CallBackHandler, CallBacks. Then they can put
    their info into those, and everything is handled server-side. So they may
    not even need to send a Subject across anyways (but they may want to as
    well).
    Please let me know if anyone sees this problem too, or if I am just completely
    off track with this one. I think figuring out how to do JAAS as though
    everything were local, and then putting RMI (or whatever) on top is the
    first thing to tackle.

    Send this to:
    newsgroups.bea.com / security-group.

  • URGENT! File Upload Utility or a Custom UI for File Upload is needed!

    Hi all,
    I'm trying to find or develop a file upload utility or custom user interface rather than editing and adding file type item to a page. There is a free portlet for file upload in Knowledge Exchange resources, but it is for 3.0.9 release. I'm using portal 9.0.2.
    I could not any sample about the new release. Also API such as wwsbr_api that is used to add item to content areas is out dated.
    I create a page with a region for "items". When "edit" page and try to add an "file" type item the generated url is sth like this;
    "http://host:7779/pls/portal/PORTAL.wwv_additem.selectitemtype****"
    After selecting item type as a simple file autogenerated url is sth. like ;
    "http://host:7779/pls/portal/PORTAL.wwv_add_wizard.edititem"
    I made search about these API but could not find anything (in PDK PL/SQL API help, too).
    I need this very urgent for a proof of consept study for a customer.
    Thanks in advance,
    Kind Regards,
    Yeliz Ucer
    Oracle Sales Consultant

    Answered your post on the General forum.
    Regards,
    Jerry
    PortalPM

  • Anyone using WLST to deploy RPD file?

    Anyone using WLST to deploy RPD file?
    I dunt want to deploy the RPD files manually every time,so i need it automatically deploy to BI .Seems WLST can do it.Some one had tried this ?
    Any help is appreciated.

    http://wlst101.blogspot.in/2011/08/wlst-obiee-upload-rpd.html
    I hope you are looking for this..

  • Please help me, I need to use Flex with CF

    Hi everyone,
    I am starting to retract my brain from an intense 2 days to
    figure out how to use Flex with Coldfusion. I am using Coldfusion 8
    Beta (this part is good, don't need help for CF itself). I am also
    using Flex Builder 2 (with chart but this not the topic). I
    installed FDS 2.5 before to install ColdFusion 8 but I think CF8
    have is own FDS or something like that... anyway, it might help to
    mention it!
    Well, I tried HTTPService, RemoteObject, WebSer vice -
    NOTHING WORKS!!! Argh! Did I mention I spent 2 days? ;-)))
    Well, I start with the basic: a login form with an email (as
    a username) and a password to be validated. I have a CFC to do the
    validation and return a simple message (string): "OK' when it is
    valid and a custom message when it is not valid; depending if it is
    the password and/or the email which is not valid.
    I always got an error. Since the error is different depending
    of the method I use, I will explain the latest method I used in
    this message and try to concentrate on that method specifically!
    The method is WebService and here is the error:
    faultCode:Server.Error.Request
    faultString:'HTTP request error'
    faultDetail: 'Error: [IOErrorEvent type="ioError"
    bubbles:false cancelable=false eventPhase=2
    text="Error #2032: Stream Error .
    URL=http://localhost:8501/iDashboard/login.cfc"].
    URL: http://localhost:8501/iDashboard/login.cfc'
    Any help will be very useful!!!
    Thank's

    Cyber,
    This may be what you are looking for. It worked well for me.
    Flex is sweet, but with the number of people confused about setup
    with CF they sure aren't making any friends.
    Flex/ColdFusion
    setup

  • ALBPM 6.0 : The maximum size for file uploads has been exceeded.

    Hi,
    I use AquaLogic BPM Entreprise server to deploy my Process. When I try to publish a process on my server I get the following error:
    An unexpected error ocurred.
    The error's technical description is:
    "javax.servlet.jsp.JspException: null"
    Possible causes are:
    The maximum size for file uploads has been exceeded.
    If you are trying to publish an exported project you should publish it using the remote project option.
    If you are trying to upload the participant's photo you should choose a smaller one.
    An internal error has ocurred, please contact support attaching this page's source code.
    Has someone resolve it?
    Thank's.

    Hi,
    Sure you've figured this out by now, but when you get the "Maximum size for file uploads" error during publish consider:
    1. if your export project file is over 10mb, use "Remote Project" (instead of "Exported Project") as the publication source. That way when you select the remote project, you will point to ".fpr" directory of the project you are trying to publish.
    Most times your project is not on a network drive that the server has access to. If this is the case, upload the .exp file to the machine where the Process Administrator is running, then expand it in any directory (just unzip the file). Then, from the Process Administrator, use the option to publish a Remote Project by entering the path to the .fpr directory you just created when unzipping the project.
    2. Check to see if you have cataloged any jars and marked them as non-versionable. Most of the times the project size is big just because of the external jar files. So as a best practice, when you do a project export select the option "include only-versionable jars", that will get reduce the project size considerably (usually to Kb's). Of course you have to manually copy the Jar files to your Ext folder.
    hth,
    Dan

  • Has anyone used FCE with a Sony hd-fx7 camcorder

    As above, has anyone used FCE with a Sony hd-fx7 camcorder. I have recently got one of these at work and am currently using imovie for basic edits, but would like to step up to FCE, has anyone any experience using the two.
    THanks

    Hi, have MacBookPro 2,16 GHz and Sony HDR-FX7 and FCE 3.5 (German PAL)
    - works good and fast
    - But better don't try to use an external monitor on DVI connection
    my system slows down if srubbing time line
    - couldn't find out yet why

  • Has anyone used ROXIO TOAST II for burning DVD

    Has anyone used ROXIO TOAST II for setting up intro and burning to DVD. I used to do this in IDVD which has been abandoned in the Maverick

    Just to say that that I've tested iDVD on 10.9 and it works for me. It's a discontinued program of course, and hasn't been supported for several years, but I don't think it runs any differently on 10.9 than it did on say, 10.6.
    However…can't help you with Toast because I don't use it.
    Russ

  • Using ExeShield with a Director File

    I developed a Director movie and need to publish it on a CD. I saw a tutorial from the ExeShield web site and it looks great and makes me able to add a serial number to it. Now I need to know if it is possible to use it with a Director file. Do I export the movie as a .exe file first? Can I also use it with a protected file? Is there another option to make a CD?

    Making CDs has absolutely unequivocably nothing to do with using ExeShield to protect your published executable.
    I have posted on other sites that it's quite possible to use ExeShield to protect your Director executable. It's easy to test with their trial version of ExeShield so I'd suggest doing that first to make sure that's the product you want to use before you purchase it.
    For more info on burning your executable to CD, you can search the forums here....
    ... or try the forums at http://director-online.com/forums/ ...
    ... or check these other links out here:
    http://www.adobe.com/cfusion/search/index.cfm?loc=en_us&term=creating+a+fast+launch+CD&s_p ageName=http%3A%2F%2Fwww.adobe.com%2F&s_channel=Adobe+Homepages&siteSection=home

  • Can anyone help me with advice for a replacement hard drive

    Hi there,
    Can anyone help me with advice for a replacement hard drive and RAM upgrade for my Mac Book Pro 5,3
    Its 3 years old & running Snow Leopard 10.6.8
    I do a lot of audio & movie work so performance is important.
    The logic board was replaced last summer & I was advised to replace the hard drive then...oops
    Anyway it has limped on until now but is giving me cause for concern...
    I have found a couple of possibilities below...so if anyone does have a moment to take a look & help me out I would be most grateful
    http://www.amazon.co.uk/Western-Digital-Scorpio-7200rpm-Internal/dp/B004I9J5OG/r ef=sr_1_1?ie=UTF8&qid=1356787585&sr=8-1
    http://www.amazon.co.uk/Kingston-Technology-Apple-8GB-Kit/dp/B001PS9UKW/ref=pd_s im_computers_5
    Kind regards
    Nick

    Thanks guys that is so helpful :-)
    I will follow your advice Ogelthorpe & see how I get on with the job!!! Virgin territory for me so I may well shout for help once my MBP is in bits!! Is there a guide for duffers for this job anywhere??
    & yes in an ideal world I would be replacing my old MBP but I'm just not in a position to do that at the moment....let's hope things pick up in 2013
    All the very best
    Nick

  • Anyone having issues with importing CR2 files into lightroom 5 as error message comes up saying "Some import operations were not performed". please advise what is a solution please

    Urgent please
    anyone having issues with importing CR2 files into lightroom 5 as error message comes up saying "Some import operations were not performed". please advise what is a solution please

    Sounds like the folder Write permissions issue described here with a solution:
    "Some import operations were not performed" from camera import

  • How to delete double contact using icloud with pc for iphone4

    hoe to delete double contact using icloud with pc for iphone4

    Delete Contacts from iPhone the Fast Way, All or Individually

Maybe you are looking for

  • Can I lock in a zoom level (e.g. Page View) so it won't change?

    I'm wondering if there is a way to prevent Adobe Reader from changing my zoom level.  I prefer to read with the zoom level set to Fit Page.  Every time I click on a bookmark to jump to another page in the document, the zoom level changes to Fit Width

  • Embedding images in excel cells-please provide code examples

    I need to create excel worksheet and embed an image in a cell. After looking at the POI javadoc and examples, I cannot figure out how to embed the image in a cell, only in the sheet. Does POI support this? I have also been looking a using Jexcel and

  • Invalid characters found in PSA

    Hi Guru's, Can any one tell me the procedure how to resolve the invalid chars in the PSA.  I tried in RSKC and permitted the all the invalid chars.  But even then i got the same error.  How to edit the records?  This is a Customer Master data.  Your

  • A general question

    Hello again world. My question is of a general nature. I am trying to teach myself Java and I think I understand classes, objects, and methods in all of their incarnations. I understand interfaces, inheritance, and the API . I am now trying to tackle

  • When i turn in my computer it only come a white screen whit a map and a questionmark?

    When i turn in my computer it only come a white screen whit a map and a questionmark?