[Laszlo-dev] Flash file upload
henry.minsky at gmail.com
Sat Oct 22 11:09:17 PDT 2005
I don't think you get any access to return values from the server.
There are a couple of notes on this page that are also eye opening
"If the file to be uploaded is bigger than approximately 10KB, the Windows
Flash Players will first send a test upload POST with zero content prior to
uploading the actual file in order to verify that the transmission is likely
to be successful. The second POST will contain actual file content. For
smaller files, the Flash Player will do a single upload POST with the file
to be uploaded.
The Mac players currently do not do test upload POSTs."
There are also reports of bugs in the way it formats the upload HTTP
request, and I believe are I have seen those bugs, the uploading doesn't
work with the apache Java library that is supposed to accept uploads. It
does work with a Java library I found called
multipartrequest.jar from http://www.andreasklimke.de/webdev/misc.html
On 10/22/05, Adam Wolff <adam at laszlosystems.com> wrote:
> I have been working on using Flash 8 file upload in a Laszlo app. Quick
> question for any flash developers out there: can you return data from a
> file upload request? It appears that the Flash player just ignores any
> response to the file upload request.
> This stinks -- it makes it much harder to architect an application where
> you want to, say, associate the uploaded file with a record in your
> database. It seems like you basically have to pass a token when you upload
> the file and then make sure your request succeeds (although if there's a
> server error you won't know it) and then call back and get the server's
> handle for the file.
> Please tell me I've missed something.
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Laszlo-dev