Ticket #6713 (closed defect (bug): fixed)

Opened 9 months ago

Last modified 9 months ago

swfupload: server response is truncated in some Flash versions

Reported by: tellyworth Assigned to: anonymous
Priority: normal Milestone: 2.5.1
Component: General Version: 2.5
Severity: normal Keywords: has-patch
Cc:

Description

There is a bug in either swfupload or Flash itself that sometimes causes the server response from a file upload to be truncated in Linux and Mac OS:

http://code.google.com/p/swfupload/issues/detail?id=4&colspec=ID%20Type%20Status%20Summary%20FixReleasedIn%20FixTargetedFor

It appears only to happen on certain servers. I've been able to reproduce this using my MacBook? - it fails on some WP installs but not others. I haven't been able to determine the cause (nor have the swfupload developers it appears) but I suspect it's a bug in the Flash Player's TCP/IP code.

The enclosed patch works around the problem by greatly reducing the size of the server response to a Flash file upload. Instead of returning a big chunk o html on success it returns the ID of the uploaded file. The html detail form for the file is then fetched in a second ajax request.

Attachments

plan-b-r7641-2.patch (3.7 kB) - added by tellyworth on 04/14/08 02:12:40.

Change History

04/14/08 02:12:40 changed by tellyworth

  • attachment plan-b-r7641-2.patch added.

04/14/08 23:09:18 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [7682]) Workaround response truncation by reducing size of response after uploading with flash uploader. Props tellyworth. fixes #6713

04/14/08 23:09:50 changed by ryan

(In [7683]) Workaround response truncation by reducing size of response after uploading with flash uploader. Props tellyworth. fixes #6713 for 2.5