We hope to have SWFUpload 2.2.0 alpha out before the weekend that will implement the button/text solution for Flash Player 10.
We will be dropping Flash Player 8 support beginning with v2.2.0. We also hope to get time to fix many of the other outstanding issue.
For the adventurous, the untested SWFUpload v2.2.0 code has been committed to SVN.
October 21, 2008 - 5:43am
Hi,
The is another simple solution. Use TWG Flash Uploader from www.tinywebgallery.com. Because there the browser windows is not opened by Javascript but by the flash directly this flash does not have any problems after updating to flash 10.
/Michael
October 21, 2008 - 6:29am
mdempfle interesting idea, but it absolutely sucks if you have an flash ui!
no one wants this, that is why swfupload is so cool, because you have the full flexibility do change the look of your uploader in whatever you want!
October 21, 2008 - 7:02am
Hi,
for me the file dialogue pops up perfectly now but files are not uploaded. I've tried both brendans and the one from svn but the behaviour is the same. The startUpload method is be called but upload doesn't start. Any clue what could be the problem ?
October 21, 2008 - 7:32am
I tried the latest version from SVN. Stil have the same problem. The upload does'nt start in IE 7 (flash 9). Same goes for IE 6 (flash 10).
SWFUpload.prototype.callFlash throws an error on line 440 when I call the startUpload function but I don't understand why. This realy is the only problem I have with the beta.
October 21, 2008 - 8:10am
@Didi - But it works. It always depends what you want. I don't want to start a discussion if flash ui's are good or not.
It always depends what you need on your homepage.
October 21, 2008 - 10:18am
Hi,
as already mentioned above the startUpload function has no effect for me and even the button image is not visible but only a white box. Are there special conditions for the image? Or am I missing some necessary parameters? I was using my code with older versions and Flash 9 without having problems, so the uploading part should still work, shouldn't it?! Or are there also changes made?
By the way, now I'm using the latest svn version on FF. Not tested for IE yet.
October 21, 2008 - 10:58am
I can confirm that the overlay demos works fine on FF but not on IE.
I'm currently tracking why.
I would add a note also. It would be perfect to have a hand cursor on the overlay.
Finally, to have a good user experience the overlay should transmits its click/hover/out events so that the button underneath could update its state. I feel it could be done through additional handlers...
Keep the good work
October 21, 2008 - 11:17am
adding a new line at 224 as below :
'param name="wmode" value="' + (transparent ? 'transparent' : 'opaque')+ '" />',
fixes the transparent problem.
October 21, 2008 - 12:04pm
When one choose the overlays, he would like to style object.swfupload tag to overlay effectively his underneath button.
This can finely be done with CSS specifying rules to button and object.swfupload.
To prevent some nasty IE behaviours when using overlays width and height should not be specified as attributes to the flash object. If specified IE always use those dimensions regardless of CSS rules applying to the object. Whereas if not specified IE stretches the flash animation according the dimensions given by CSS rules. Firefox does the latter in all cases.
its more flexible...
October 21, 2008 - 12:26pm
The overlay stuff doesn't seem to work for me in IE (Flash Player 9). I'm working on that. @domi.papin: I came to the same conclusion. Thanks for the tip.
Many of the Demos seem broken in IE (Flash Player 9) because of caching issue. If you enable the prevent_swf_caching setting things start working. This setting may become automatic since it affects all IE based browsers (Avant Browser for example).
The Forms Demo is broken in IE (FP9) for some reason. I think it has to do with calling Flash stuff from the FileDialogStart event. We may have to drop the File Dialog Start event since even though it is fired before the dialog is displayed it doesn't get called until after the dialog is dismissed. Since we are using a setTimeout workaround for another Flash Bug we may not have anyway to fix this issue.
October 21, 2008 - 3:02pm
The flash overlay hack worked for us at Scribd: http://www.scribd.com/upload
The solution that worked: http://github.com/bschwartz/swfupload/tree/master
Thanks to bschwartz for the solution.
The 2.2 alpha version of swfupload did *not* work. The firing off of the browse file dialogue did work as advertised, but it caused a lot of other subtle bugs in the more complex JS interactions we have built around swfupload.
More specifically, we had issues with ajax callbacks that fired off various functions in the swfupload object (wrt lightbox logins). In IE, it sometimes worked, whereas other times, it seemed like the swfupload object was missing upon callback. We couldn't get to the bottom of the issue, but we suspect it's some subtle change in swfupload.js that was causing the problems.
bschwartz's solution changed as little as possible while making Flash 10 work. However, as someone else had mentioned, I'm willing to bet Adobe will one day also consider an invisible flash overlay as a security risk and disallow it--thus, bringing us back to square 1. Hopefully, that day is not near.
October 21, 2008 - 4:10pm
An SVN update has been made. It improves the Transparent Overlay (works in IE with Flash 9). Other IE issues have been addressed (mostly with to do with caching).
The graceful degradation plugin has been removed. It no longer works with IE. Use the SWFObject plugin.
October 22, 2008 - 4:49am
@gyphie, thank your for your update!
I can confirm that the latest svn overlaydemo version works fine in:
FF 3.0.3 tested with Flash 9 and Flash 10
Netscape 9 tested with Flash 9 and Flash 10
IE6 tested with Flash 9 and Flash 10
IE7 tested with Flash 9 and Flash 10
IE8 Beta tested with Flash 9 and Flash 10
SeaMonkey 1.1.11 tested with Flash 9 and Flash 10
Opera 9.52 tested with Flash 9 and Flash 10
Safari 3.1 tested with Flash 9 and Flash 10
And yes the flash overlay is transparent in all of them.
Used Flash 9 Version: 9,0,124,0
Used Flash 9 ActiveX (IE) Version: 9,0,124,0
Used Flash 10 Version: latest (10,0,12,36)
I implemented the latest svn into my code, it works fine, all i need was an javascript browser switch to change the button width in IE, and some little css tricks to center the overlay in safari.
Ty gyphie!
October 22, 2008 - 4:12am
Still having problems with uploading files after queuing. Breaking things down I found out that flash is refreshing after queuing. At least I think so because debug output looks like this:
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
SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ---- SWF DEBUG: Build Number: SWFUPLOAD 2.2.0 Alpha 2008-10-16
... and so on
I wonder why the same swf-file works fine for me with Flash 9?!
What am I doing wrong?
Thanks in advance for any hint!
October 22, 2008 - 8:46am
hey hey,
first of all, thanks for going on!!! swfupload is a very important and nyce tool for me! I used it for several fileuploads, but like many other people, flash 10 killed ma applications....
i checked out the latest revision of swfupload (r784), and di tried to work with it. but two problems occurred: the methods setUploadURL and setPostParams, do not work in this version. does anybody have the same problem? are there already solutions?
i got the following errors:
uncaught exception: Invalid function name: SetUploadURL
uncaught exception: Invalid function name: SetPostParams
it seems for me, that anything in the callFlash Method is wrong. when i comment out this method call, everything works fine until the flash should send the files.
thanks a lot for the help, and excuse my english....
October 22, 2008 - 11:17am
Maybe someone else runs into this problem:
Its not exactly clear but if something changes in the container that contains the flash widget (I read about some css positioning problems) it could happen that flash reloads like described in my previous post. I fixed this for me by changing my dom structure and ensuring that the container div remains static. Now everything works fine.
And by the way, thanks to all of you for the good work!
BT
October 23, 2008 - 12:41am
BT, I can confirm that you are correct.
If the div the Flash button is in, or any parent thereof, is hidden during the queuing operation, it causes the Flash to reload and cease responding to JavaScript function calls.
This makes it extremely difficult to have your Upload button replaced by a progress bar. I am researching workarounds, but have not yet located any.
Anyone have any ideas?
Jeff
October 23, 2008 - 1:10am
Instead of hiding the button try to make it less visible.
It probably needs a wrapper (like a div or something). Set:
overflow: hidden;
width: 1px
height: 1px;
padding-left: 1px;
padding-right: 1px;
background-color: whatever you need;
You might have to set some other things but hopefully that approach will make it nearly hidden without causing a reload.
October 23, 2008 - 5:27am
after line 68, add :
this.ensureDefault("swfupload_pre_load_handler", null);
after line 104, add :
"\t", "swfupload_load_failed_handler assigned: ", (typeof(this.settings.swfupload_load_failed_handler) === "function").toString(), "\n",
October 23, 2008 - 4:56pm
I have the overlays working, and was wondering if there is any way to get a hand cursor when the overlay is over an A tag, or just to give it a hand cursor in general? I tried styling the OBJECT tag with cursor: pointer, as well as the same cursor: pointer on sibling/parent elements, to no avail. Anyone have any luck with this?
October 23, 2008 - 11:04pm
@domi.papin: Thanks I've opened an issue and we'll make those changes
@dggtydnk: We'll add a setting for triggering a hand cursor when mousing over the flash button.
October 24, 2008 - 5:41pm
Really great, I also agree. I do love it, so I opened up a project for the content management system Drupal some time ago to be able to upload a lot of images with one simple click. Now, in devel version, also swfUpload 2.2.0 is ready to use. That means that it's also possible to use Flash 10 now, I think the clients out there are deeply grateful for your work
http://drupal.org/project/image_fupload
October 25, 2008 - 11:51am
I tried the new version of SWFUpload and everything works properly, the changes did not affect the applications developed
Thank you very much for this wonderful library and the support given.
See you soon
November 6, 2008 - 4:16am
Little up for this topic to thank gyphie again for his work!
I'm working with the 2.2 beta to fix the Flash 10 problem and it works like a charm ! And it was pretty easy to move from the 2.1 to the 2.2 so that's just perfect !
As mentioned before, you should consider a little "donate" button somewhere because you really deserve a kind of "compensation" for what you do
November 11, 2008 - 4:53am
He,
everythink is working now perfect with flash player 10. Accept for one thing. In IE6 & 7 you need to loose focus on the browser window to start uploading... Very strange isn't it? Can this be a flash problem?
Hope somebody around here can help. Cost me 10 hours already.
November 20, 2008 - 9:24am
Hi,
I've been fighting with swfupload for 2 days now.
I've been trying to use this rar (flash button) version, with Flash 10, XP, both FF3 and IE7, and I get nothing posting to my server.
I've been watching with Wireshark and there is just no POST happening.
I've checked all logs, nothing useful there. I'm not using mod_security.
Here's my debug output:
---SWFUpload Instance Info---
Version: 2.2.0 Alpha
Movie Name: SWFUpload_0
Settings:
upload_url: http://...mysite.com/scripts/upload.php
use_query_string: false
file_post_name: Filedata
post_params: [object Object]
file_types: *.txt
file_types_description: mp3 Files
file_size_limit: 100 MB
file_upload_limit: 100
file_queue_limit: 0
flash_url: http://...mysite.com/flash/swfupload.swf
flash_color: #FFFFFF
debug: true
custom_settings: [object Object]
Event Handlers:
swfupload_loaded_handler assigned: false
file_dialog_start_handler assigned: false
file_queued_handler assigned: true
file_queue_error_handler assigned: true
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
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.2.0 Alpha 2008-10-16
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: http://...mysite.com/scripts/upload.php
SWF DEBUG: File Types String: *.txt
SWF DEBUG: Parsed File Types: txt
SWF DEBUG: File Types Description: text files (*.txt)
SWF DEBUG: File Size Limit: 104857600 bytes
SWF DEBUG: File Upload Limit: 100
SWF DEBUG: File Queue Limit: 100
SWF DEBUG: Post Params:
SWF DEBUG: PHPSESSID=
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.txt
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
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: PHPSESSID=
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://xxxxx:xxxxxxx@resipiscent-admin.chriscortese.net/scripts/upload.p... for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadError : IO Error : File ID: SWFUpload_0_0. IO Error: Error #2038
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: IO Error, File name: dad_listing.txt, Message: Error #2038
November 20, 2008 - 9:29am
chrisco23, you should probably change your http password for the user "decker". Look at your debug log
November 20, 2008 - 10:40am
@q_no: I've removed the username and password (yeah, it's a bit too late) in case he never sees your comment.
December 3, 2008 - 12:39am
Why doesn't SWFUpload have the .net v2.2.0 version ???
March 30, 2009 - 1:22pm
I am not able to browse Github.com, is that site still up and running? 14:30 PM EST.