Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

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



Messages by Day
December 31st 2006
December 30th 2006
December 29th 2006
December 28th 2006
December 27th 2006
December 26th 2006
December 25th 2006
December 24th 2006
December 23rd 2006
December 22nd 2006
December 21st 2006
December 20th 2006
December 19th 2006
December 18th 2006
December 17th 2006
December 16th 2006
December 15th 2006
December 14th 2006
December 13th 2006
December 12th 2006
December 11th 2006
December 10th 2006
December 9th 2006
December 8th 2006
December 7th 2006
December 6th 2006
December 5th 2006
December 4th 2006
December 3rd 2006
December 2nd 2006
December 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000