Hey Tom, Thanks for your input. Unfortunately, I need more back than a status code (I was just using those messages and an example). What we are actually doing is allowing the user to upload an Excel file and sending back the parsed data. Here is the approach we are taking now, knowing the limitations of FileReference.
1. WS call to request an uploadID - the server side code inserts a row into an uploadedFiles table and returns the auto id of the new row 2. Upload the file and pass that uploadID along as a url variable - the server code then saves the file to the system, storing the path in the row corresponding to the passed uploadID 3. Upon upload completion we'll make another WS call, passing the uploadID, and the server code will parse the corresponding file and send the data back as a SOAP response Setting up the test files now... :) Ben --- In flexcoders@yahoogroups.com, "Tom Ortega" <[EMAIL PROTECTED]> wrote: > > You gotta be creative. =) > > You get the http Status code back from fileReference. Use that to > communicate what you want back to the client. > > We have 4 messages in my flex code that we show depending on what http > status code the servlet sends back. > > You could do something similar: > status code 200 - all is well > status code 2500 - invalid format > status code 3500 - duplicate file exists > > Yes, the limitation of fileReference sucks, but if you need to use it, this > is a nice hack to get what you want. > > On 9/26/06, ben.clinkinbeard <[EMAIL PROTECTED]> wrote: > > > > We are just trying to upload a file and then return some data back to > > Flash, but apparently that is not possible. Number 2 at > > > > http://www.mehtanirav.com/2006/04/29/filereference-on-mac-type-is-not-available/ > > seems to confirm what I feared about FileReference. > > > > Can someone please explain to me how/when its useful to upload a file > > and get nothing back besides a confirmation? How would you communicate > > that there is already a file uploaded with that name? How would you > > communicate that the file's data is not correctly formatted? > > > > I cannot believe there is no way to get any returned data from the url > > that you upload your file to. Seriously- what is the point of using > > FileReference with such an immense limitation? > > > > Disappointed, > > Ben > > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Tom > > Ortega" <tom.ortega@> wrote: > > > > > > We ended up having to use a servlet in which we upload the file too > > and pass > > > any non-file data as url vars. > > > > > > Are you changing the file within the same call? > > > > > > -Tom2 > > > > > > On 9/26/06, ben.clinkinbeard <ben.clinkinbeard@> wrote: > > > > > > > > Should I take this as a yes? Simply not possible? > > > > > > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com><flexcoders%40yahoogroups.com>, " > > > > ben.clinkinbeard" > > > > <ben.clinkinbeard@> wrote: > > > > > > > > > > Hello, I came across some info (after unsuccessfully trying myself) > > > > > stating that it is not possible to make SOAP calls with > > attachments in > > > > > Flex because: > > > > > > > > > > The problem with the Flex file upload using FileReference is that it > > > > > does not provide support for sending SOAP attachments. > > > > > > > > > > 1. Headers cannot be added (therefore we cannot specify SOAPAction) > > > > > 2. Content-Type is fixed as multipart/Form-Data which may not work > > > > > with our webservice > > > > > 3. It doesn't allow you to arrange/ specify in what order the > > > > > multiparts appear in, or if you want the generated blocks to appear > > > > at all > > > > > 4. Doesn't seem to pick up the entire file as binary output when > > > > > monitoring the outgoing request using TCP/IP monitor. > > > > > > > > > > > > > > > Is this true? What is the best solution for an app that requires a > > > > > file be uploaded and its contents returned to the Flash player? > > > > > > > > > > Thanks, > > > > > Ben > > > > > > > > > > > > > > > > > > > > > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/