Update
We've posted a new swfupload.swf for v2.5.0 beta 3 that fixes some issues (we hope).
1. Hopefully resolves #1506 errors
2. Fixed poor memory management of file data loaded when resizing
3. Fixed resized image file names (no more duplicate extensions)
This is available as a separate download at the Google Code site.
----------------------------------------------
We are happy to release SWFUpload v2.5.0 Beta 3.
This adds a couple new things that warranted another beta release:
- Resized uploads now behave like normal uploads and can be handled with $_FILES (this has lots of benefits).
- Using a new Alchemy based JPEG encode which is 100 x faster (PNG encode is unchanged).
The Samples package has been updated with a Resize Demo that actually saves images to disk (rather than using session). We hope this will help get you started.
We haven't really tested memory usage and have heard that the JPEG encoder could have memory leaks. So let us know what you find.
Demos are online at http://demo.swfupload.org/v250beta3/
Downloads available at the Google Code site http://code.google.com/p/swfupload/
February 20, 2010 - 2:51am
About the resize feature, it seems that only support jpg and png encoding. If user upload a gif file and I want to keep the resized image gif format. which encoder I should use? Or is there any method I can use to recognise the Image format i.e. JPG/PNG/GIF(not according to the file name), so that I can only resize the image which are not gif. Thanks a lot!
February 22, 2010 - 11:13am
You should be able to select a GIF but it will be converted to a JPG or PNG if resized. But we haven't actually tried this.
We did not implement GIF encoding for a few reasons:
1. We didn't think of it.
2. Who has GIFs that large?
3. A PNG or JPG won't convert satisfactorily into a GIF due to GIFs palette limitations
February 22, 2010 - 11:28pm
Thank you, gyphie.
In our application, user can upload gif files and the resized image should keep the anamation, so we can't convert gif to jpg or png files. Now our solution is, if the image file name contains .gif, we will not resize the image and send it to server directly. But this method is not accurate. Is there any API in SWFUpload that we can identify the format of Images? Thanks very much!
February 25, 2010 - 5:38pm
But I keep getting this error message (when using it on my machines as well as in your online demos):
SWF DEBUG: Settings: Width: 800, Height: 600, Encoding: JPEG, Quality: 90.
SWF DEBUG: PrepareResizedImageErrorHandler(): Error resizing image: Resizing: Error #1506
SWF DEBUG: Event: uploadError : Resize Error : File ID: SWFUpload_0_1. Error: Resizing: Error #1506
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
After some investigation, I found this (http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alc...) comment that suggests a possible fix for this bug.
February 26, 2010 - 11:20am
We've already made these changes. We'll probably post the SWF file as standalone file rather than doing a beta 4.
February 26, 2010 - 12:03pm
http://code.google.com/p/swfupload/downloads/list
We've posted a new swfupload.swf for v2.5.0 beta 3 that fixes a couple issues (we hope).
1. Hopefully resolves #1506 errors
2. Fixed poor memory management of file data loaded in order to resize
3. Fixed resized image file names (no more duplicate extensions)
March 25, 2010 - 11:47am
After updating to SWFUpload v2.5.0 Beta 3 we started having intermittent failures in StartUpload. Not really sure what's happening but after reverting back to v2.5.0 Beta 2 the errors went away.
-------------------------------------- FAILED ---------------------------------------------
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Version: 2.5.0 2010-03-05 Beta 3.2
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: /RFQ/SwfUploadParts/1
SWF DEBUG: File Types String: *.STL;*.SLDPRT;*.ZIP
SWF DEBUG: Parsed File Types: stl,sldprt,zip
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: All Files (*.STL;*.SLDPRT;*.ZIP)
SWF DEBUG: File Size Limit: 536870912 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 0
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
---SWFUpload Instance Info---
Version: 2.5.0 2010-01-15 Beta 2
Movie Name: SWFUpload_0
Settings:
upload_url: /RFQ/SwfUploadParts/1
flash_url: /scripts/swfupload_fp10.swf
flash9_url: /scripts/swfupload_fp9.swf
use_query_string: false
requeue_on_error: false
http_success:
assume_success_timeout: 0
file_post_name: Filedata
post_params: [object Object]
file_types: *.STL;*.SLDPRT;*.ZIP
file_types_description: All Files
file_size_limit: 512MB
file_upload_limit: 0
file_queue_limit: 0
debug: true
prevent_swf_caching: false
button_placeholder_id: add-part-btn
button_placeholder: Not Set
button_image_url: /content/images/btn_add_part_active.png
button_width: 100
button_height: 100
button_text:
button_text_style:
button_text_top_padding: 0
button_text_left_padding: 0
button_action: -110
button_cursor: -2
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_preload_handler assigned: true
swfupload_load_failed_handler assigned: true
swfupload_loaded_handler assigned: true
mouse_click_handler assigned: false
mouse_over_handler assigned: false
mouse_out_handler assigned: false
file_dialog_start_handler assigned: true
file_queued_handler assigned: true
file_queue_error_handler assigned: true
upload_resize_start_handler assigned: false
upload_start_handler assigned: true
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true
Support:
Load: Yes
Image Resize: Yes
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Version: 2.5.0 2010-03-05 Beta 3.2
SWF DEBUG: movieName: SWFUpload_1
SWF DEBUG: Upload URL: /RFQ/SwfUploadAttachments/1
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit: 104857600 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 0
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
---SWFUpload Instance Info---
Version: 2.5.0 2010-01-15 Beta 2
Movie Name: SWFUpload_1
Settings:
upload_url: /RFQ/SwfUploadAttachments/1
flash_url: /scripts/swfupload_fp10.swf
flash9_url: /scripts/swfupload_fp9.swf
use_query_string: false
requeue_on_error: false
http_success:
assume_success_timeout: 0
file_post_name: Filedata
post_params: [object Object]
file_types: *.*
file_types_description: All Files
file_size_limit: 100 MB
file_upload_limit: 0
file_queue_limit: 0
debug: true
prevent_swf_caching: false
button_placeholder_id: btn-attach
button_placeholder: Not Set
button_image_url: /content/images/btn_attach_white.png
button_width: 45
button_height: 68
button_text:
button_text_style:
button_text_top_padding: 0
button_text_left_padding: 0
button_action: -110
button_cursor: -2
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_preload_handler assigned: true
swfupload_load_failed_handler assigned: true
swfupload_loaded_handler assigned: true
mouse_click_handler assigned: false
mouse_over_handler assigned: false
mouse_out_handler assigned: false
file_dialog_start_handler assigned: true
file_queued_handler assigned: true
file_queue_error_handler assigned: true
upload_resize_start_handler assigned: false
upload_start_handler assigned: false
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true
Support:
Load: Yes
Image Resize: Yes
SWF DEBUG: Stage Resize:45 by 68
SWF DEBUG: Stage Resize:100 by 100
SWF DEBUG: Stage Resize:45 by 68
SWF DEBUG: Button Image Loaded
SWF DEBUG: Stage Resize:45 by 68
SWF DEBUG: Stage Resize:100 by 100
SWF DEBUG: Button Image Loaded
SWF DEBUG: Stage Resize:100 by 100
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.STL;*.SLDPRT;*.ZIP
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
fileQueued: SWFUpload_0_0
Exception calling flash function 'StartUpload':
-------------------------------------- SUCCESS -----------------------------------------
---SWFUpload Instance Info---
Version: 2.5.0 2010-01-15 Beta 2
Movie Name: SWFUpload_0
Settings:
upload_url: /RFQ/SwfUploadParts/1
flash_url: /scripts/swfupload_fp10.swf
flash9_url: /scripts/swfupload_fp9.swf
use_query_string: false
requeue_on_error: false
http_success:
assume_success_timeout: 0
file_post_name: Filedata
post_params: [object Object]
file_types: *.STL;*.SLDPRT;*.ZIP
file_types_description: All Files
file_size_limit: 512MB
file_upload_limit: 0
file_queue_limit: 0
debug: true
prevent_swf_caching: false
button_placeholder_id: add-part-btn
button_placeholder: Not Set
button_image_url: /content/images/btn_add_part_active.png
button_width: 100
button_height: 100
button_text:
button_text_style:
button_text_top_padding: 0
button_text_left_padding: 0
button_action: -110
button_cursor: -2
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_preload_handler assigned: true
swfupload_load_failed_handler assigned: true
swfupload_loaded_handler assigned: true
mouse_click_handler assigned: false
mouse_over_handler assigned: false
mouse_out_handler assigned: false
file_dialog_start_handler assigned: true
file_queued_handler assigned: true
file_queue_error_handler assigned: true
upload_resize_start_handler assigned: false
upload_start_handler assigned: true
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true
Support:
Load: Yes
Image Resize: Yes
---SWFUpload Instance Info---
Version: 2.5.0 2010-01-15 Beta 2
Movie Name: SWFUpload_1
Settings:
upload_url: /RFQ/SwfUploadAttachments/1
flash_url: /scripts/swfupload_fp10.swf
flash9_url: /scripts/swfupload_fp9.swf
use_query_string: false
requeue_on_error: false
http_success:
assume_success_timeout: 0
file_post_name: Filedata
post_params: [object Object]
file_types: *.*
file_types_description: All Files
file_size_limit: 100 MB
file_upload_limit: 0
file_queue_limit: 0
debug: true
prevent_swf_caching: false
button_placeholder_id: btn-attach
button_placeholder: Not Set
button_image_url: /content/images/btn_attach_white.png
button_width: 45
button_height: 68
button_text:
button_text_style:
button_text_top_padding: 0
button_text_left_padding: 0
button_action: -110
button_cursor: -2
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_preload_handler assigned: true
swfupload_load_failed_handler assigned: true
swfupload_loaded_handler assigned: true
mouse_click_handler assigned: false
mouse_over_handler assigned: false
mouse_out_handler assigned: false
file_dialog_start_handler assigned: true
file_queued_handler assigned: true
file_queue_error_handler assigned: true
upload_resize_start_handler assigned: false
upload_start_handler assigned: false
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true
Support:
Load: Yes
Image Resize: Yes
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Version: 2.5.0 2010-02-17 Beta 3
SWF DEBUG: movieName: SWFUpload_1
SWF DEBUG: Upload URL: /RFQ/SwfUploadAttachments/1
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit: 104857600 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 0
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Version: 2.5.0 2010-02-17 Beta 3
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: /RFQ/SwfUploadParts/1
SWF DEBUG: File Types String: *.STL;*.SLDPRT;*.ZIP
SWF DEBUG: Parsed File Types: stl,sldprt,zip
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: All Files (*.STL;*.SLDPRT;*.ZIP)
SWF DEBUG: File Size Limit: 536870912 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 0
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)
SWF DEBUG: Stage Resize:100 by 100
SWF DEBUG: Stage Resize:45 by 68
SWF DEBUG: Button Image Loaded
SWF DEBUG: Stage Resize:100 by 100
SWF DEBUG: Button Image Loaded
SWF DEBUG: Stage Resize:45 by 68
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.STL;*.SLDPRT;*.ZIP
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
fileQueued: SWFUpload_0_0
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: StartUpload(): Upload Type: Normal.
UploadStart: SWFUpload_0_0
SWF DEBUG: Global Post Item: upload-id=SWFUpload_0_0
SWF DEBUG: Global Post Item: PartStyle.MaterialID=22
SWF DEBUG: Global Post Item: PartStyle.HandFinishID=5
SWF DEBUG: Global Post Item: PartStyle.SurfaceTreatmentID=5
SWF DEBUG: Global Post Item: PartStyle.ProductID=8
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for standard upload. Starting upload to /RFQ/SwfUploadParts/1 for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3642087. Total: 3642087
March 27, 2010 - 7:39am
This problem is not fixed, same on your website.
This morning everything was good and now it doesn't worked.
Trying with 3 differents brothers :
- Safari
- FireFox
- Opera
And nothing, just javascript #1506 error
however you've got a very good job.
Hello from France ...
March 29, 2010 - 12:36pm
Can you provide steps to reproduce? And a test file.
May 4, 2010 - 5:33pm
For each upload I'm doing a synchronous ajax call which adds a line item to a grid while showing a please wait indicator using the ExtJS framework.
var progress = new Ext.LoadMask (Ext.getBody (), { msg: 'Please wait...' }),
var progress.show();
it appears that using the progress indicator leads to the next swfUpload method (aka StartUpload) to fail. The ajax update completes but once it does the next step is to call StartUpload and that fails. This only affects Firefox as IE6,7,8, Safari, Chrome and Opera all work ok using the progress indicator.
Removing the progress indicator allows Firefox to succeed.
July 1, 2010 - 4:03am
Can you please, please, please, add some more new links where I can download these new beta version ? Cos the lincs which you posted are not working... Or at least I can't use them properly
...
P.S.
It's not my fault that I'm blond
May 12, 2010 - 9:38am
SWFUpload files and bug tracking are hosted on Google Code
http://code.google.com/p/swfupload/
This site is use just for the Forums and support
May 12, 2010 - 12:01pm
I want to change JPEG resizing algorithm. I downloaded SWFUpload_v250_beta_3_core.zip from http://code.google.com/p/swfupload/ and did my changes. It works great now - quality is better and size is smaller in 3-5 times.
But now I have #1506 errors again. It wasn't when I used swfupload.swf.v2.5.0.beta3.2.zip. It appears only when I use source code from SWFUpload_v250_beta_3_core.zip. Is SWFUpload_v250_beta_3_core.zip actual version of the code? Or when I can find newer one?
Thank You.
May 13, 2010 - 4:00pm
The code changes for b3.2 haven't been released in a package yet. You can get the latest source from the SVN repository. There were only 2 changes and you can pull them with an SVN client via the GoogleCode site:
http://code.google.com/p/swfupload/source/detail?r=914
May 24, 2010 - 3:45pm
First, thank you so much for the great work!
I have just one question: is it possible to create light version of the uploader with resize and upload functions only just for the one file(multy-file uploading create more problems then benefits)? The 200KB of code now and no caching swf in the client browser – it’s too heavy for web.
Usually web developers wants button “Select file(photo)” and access to response from server for to do eval().
Thanks again for the great work.
May 25, 2010 - 3:50pm
Hi all,
I tried several Mac computers (Safari and Firefox + Flash Player 10):
Two Macs running Mac OS X ver 10.4 = Error 1506
One Mac running Mac OS X ver 10.5 = Error 1506
Three Macs unning Mac OS X ver 10.6 = Working fine
Is Mac OS 10.6 required to generate the thumbs? Does this Error 1506 happen only with Mac OS computers? Can you share your experiences with Error 1506 so we can find out what is the cause?
Thanks!
July 2, 2010 - 1:36pm
Great information! Keep up the great work!