|
|
 |
Re: FN-FORUM: Flash Upload Javascript Callback
date posted 4th December 2006 13:20
hmm yes HTTP errors, that should work...
we already created a new method to check the database for the new Item as
confirmation and to grab the ID..
many thanks for that..
n.
----- Original Message -----
From: Mike Duguid
To: FN-FORUM / [EMAIL REMOVED]
Sent: Monday, December 04, 2006 1:43 PM
Subject: Re: FN-FORUM: Flash Upload Javascript Callback
> I have a Flash 8 uploader working - even got it to work posting an XML
> string to a Gateway and all works fine after we fixed macromedias cock up
> with the Multipart data headers..
>
> Problem: The Upload function doesn't support callback.. i.e. a server
> response.
Depending on how much data you require back, if it's just a simple
status report then you can invoke a http header from your server side
script,
e.g
In an application for image uploading, I needed response back along
the lines of
a) is this image cmyk or rgb
b) does this image dpi = 300
c) is the aspect ratio correct
...
etc
For each state, I output a header using rarely used http errors e.g
from 408 through to 417
then caught them from the fileReference onHTTPError event. I posted
some stuff on adobe livedocs about this a while back though can't
remember the url.
You could also write data to a database /session from your initial
upload process, then make a secondary loadvars call onLoadComplete to
another script that then accesses this data. There are things that can
be done via xml sockets as well but thats probably overkill for this.
Mike
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|