1 Reply Latest reply on Oct 13, 2006 9:17 AM by leotemp

    file upload

    trycold
      Hi,

      I am uploading file and it is working file. What I need to change is that the file name should change based on an entry made in a textbox. How do I do that. i have tried including parameter in file.upload but it gives me an I/O error.

      I have
      var request:URLRequest = new URLRequest(" http://my server/uploader.cfm")
      file.upload(request);

      uploader.cfm
      <cffile action="upload"
      fileField="Filedata"
      nameconflict="overwrite"
      destination="c:\files" >

      thanks
        • 1. file upload
          leotemp Level 1
          huh, i dont see anything in the language reference about that, usually there is a way to send variables along with the file that the object will provide methods for retrieving, however since the upload object is on your server and not part of flex im not sure how it would work. If flex provides a way to pass these variables then you would still need to access the methods of your upload object that will return said variables after they are passed by flex.