WordPress.org

Ready to get started?Download WordPress

Forums

Flash Player 10 Beta breaks file upload (49 posts)

  1. Rob Zako
    Member
    Posted 6 years ago #

    I just installed the beta version of Adobe’s new Flash Player 10 and it broke WordPress’s file upload capability. In particular, clicking any of the "Add Media" buttons did correctly display a dialog box to upload or link to media. But then clicking on the "Choose Files to Upload" button did nothing at all. Reinstalling Adobe Flash Player 9.0.124.0 fixed the problem. Thus I am pretty sure the problem is with Flash Player 10 Beta—not with WordPress or any other configurations on my browser or computer.

    But consider this post a heads up about potential problems with Adobe Flash Player 10 one a final version is released.

    Note that I am running Mac OS X 10.5.2 (Leopard) and Firefox 2.0.0.14 on an Intel-based MacBook, not that I believe those details are necessarily relevant.

  2. Davin
    Member
    Posted 6 years ago #

    Just confirming that I had the same problem with the Flash Player 10 beta. OS X 10.4.11 Firefox 3 RC1.

  3. wkirkland
    Member
    Posted 6 years ago #

    Still a problem with Vista, WP 2.5.1, Firefox 3.0 and Flash 10.0 b218 on July 4. Since I need the Flash beta to run YouTube properly I just go in to Firefox AddOns, PlugIns and disable Flash for the duration of a posting session. You get the older non-flash method of browsing locally and uploading -- which works fine.

  4. Ciro Urdaneta
    Member
    Posted 6 years ago #

    Adobe said that it's a security problem that should be corrected by WordPress

    Throwing error 2176 prevents a security vulnerability that could allow dialogs to be displayed without an explicit action by the user. WordPress will need to alter their code so that they do not indirectly call FileReference.browse to display the file dialog.

  5. Ziyphr
    Member
    Posted 5 years ago #

    Just wondering - any news on this?

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Short version: Don't use Flash Player 10.

    Long version: WordPress is not going to fix this. The flash in question is the SWFUpload library, so if it gets changed, then WordPress will likely upgrade. However, from what I'm reading over there, this is not fixable. Adobe crippled Flash 10 and made this sort of thing basically impossible. There's some back and forth trying to get Adobe to revert their broken changes, but unless that happens, it seems unlikely that Flash 10 will be able to do any sort of file uploading of any kind.

    Note that flickr, yahoo, and all other flash-based uploaders will all be broken by this change in Flash 10. At the moment, everybody is recommending to NOT upgrade Flash any further than version 9. If you've installed the 10 beta, downgrade it.

    If Flash 10 does not revert this change, then this will essentially end the SWFUpload project, and WordPress will likely look for some other project to use instead. Probably a Java based multi-file uploader, since Flash is proving itself to be unreliable in Adobe's hands.

  7. bit101
    Member
    Posted 5 years ago #

    Some clarification...

    First of all, "Don't use Flash Player 10". Well, Flash Player versions achieve well over 90% penetration well within a year of being released, so that's not a good long term solution.

    Second... "it seems unlikely that Flash 10 will be able to do any sort of uploading of any kind." Is just completely untrue. Adobe is not removing uploading features in Flash 10. The problem is the interaction with the SWFUpload JavaScript library. Flash 10 does not allow you to open a file browse dialog except via a direct mouse click. It is that SWFUpload tries to open the dialog indirectly that causes it to fail.

    This is not something that is technically a "bug" or "broken" in Flash 10. It's a "security feature". In other words it's intentional. Adobe tends to go overboard in its security measures, which tends to drive Flash developers like myself crazy in many, many more ways than this.

    Long story short, it looks like SWFUpload is not going to work with Flash 10 unless Adobe backs down (could happen, but don't hold your breath) or someone figures out a way to hack it.

    There are plenty of ways around this. Embed a SWF with a button in the upload page. The button is clicked and allows you to open the file browse dialog. I'm not sure why you are using the SWFLoad library rather than just using a straight SWF.

  8. mikechambers
    Member
    Posted 5 years ago #

    You can find information on this, why it was done, and potential solutions on how to fix it at:

    Flash Player 10 FileReference Changes
    http://theflashblog.com/?p=423

    This is a change made for security reasons, and it will be in Flash Player 10.

    If anyone from wordpress would like to get in touch with someone from Adobe to discuss a solution, please feel free to contact me directly.

    mike chambers

    mesh@adobe.com

  9. Pixelstyle
    Member
    Posted 5 years ago #

    So basically I can choose between Flash 9 (flash videos don't run well in FF) and Flash 10 (Flash upload doesn't work). Glad I'm not running a video blog.

    More info from SWFUpload

  10. backpages
    Member
    Posted 5 years ago #

    Note that this is not just an issue with the beta. I installed the officially released version today and am having the same problem. Can't upload images with the "Flash uploader."

  11. OperaManiac
    Member
    Posted 5 years ago #

    yeah. same problem here.

    flash 10 also broke the uploader on zooomr.com

    i need to check flickr uploader now.

    anyways i can get back to flash 9?

  12. etegration1
    Member
    Posted 5 years ago #

    ph shitz, i guess wordpress will fix this in due course. in the meantime, downgrade back to 9. http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&sliceId=1

  13. picmax
    Member
    Posted 5 years ago #

    Is there a way to make browser upload the default?

  14. mdempfle
    Member
    Posted 5 years ago #

    Hi,

    The is another simple solution. Use TWG Flash Uploader from http://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

  15. skila
    Member
    Posted 5 years ago #

    C'mon guys, you've known about this for 5 months and have not come up with a fix. This is a bit pants - we know Adobe changed stuff, people have been talking about it for ages and they told you what the problem was.

    I know the issue is with SWFUpload, but that's OS too - how come none of the WordPress coders have mucked in to help fix SWFUpload, which WordPress relies on so heavily - what happened to the Community in Open Source Community?

    Not impressed and still waiting.

  16. OperaManiac
    Member
    Posted 5 years ago #

    read on the wiki that the fix is not likely to arrive in 2.7. we might have to wait for 2.8. weird considering flash player 10 is officially out and its available everywhere.

    http://codex.wordpress.org/Version_2.7#Features_That_Didn.27t_Make_It

  17. thedlab
    Member
    Posted 5 years ago #

    Could anyone please check the support for SWF upload.

    There's a new beta
    http://swfupload.org/forum/news/827

    supporting FP 10, so i guess we can still add it to 2.7

  18. Ciro Urdaneta
    Member
    Posted 5 years ago #

    ead on the wiki that the fix is not likely to arrive in 2.7. we might have to wait for 2.8. weird considering flash player 10 is officially out and its available everywhere.

    http://codex.wordpress.org/Version_2.7#Features_That_Didn.27t_Make_It

    That's really weird, I don't know why they doesn't give us a fix or just implement it in WP 2.7

  19. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    They're looking at integrating the SWFUpload 2.20 into 2.7, but I would not depend on it. We've been discussing it on trac: http://trac.wordpress.org/ticket/6979

    Because of Adobe's hamhandedness on this issue, I think it would be better to drop the use of Flash entirely and switch to Gears for this purpose instead. Gears support is already in WP for caching, might as well use some of the other available functionality as well.

    IMO, Flash is clearly unreliable for this usage, since they can't even do a version change without breaking widely used functionality. Furthermore, the fact that they were told about the problem 6 months ago and still went and intentionally broke the entire world just shows how they cannot be trusted or reliable. So I'm certainly not going integrate anything written in Flash into any websites anytime soon.

    For now, use the browser uploader instead.

  20. cyberolf
    Member
    Posted 5 years ago #

    Hi guys,

    I just noticed that wordpress posted a patch for SWFUpload 2.20beta on their trac site. (Thank you!)

    I was unable to use SVN to patch the files, so I did this manually. To save you guys the time and work, I created an ZIP archive with the patch to get SWFUpload working again for Flash 9 and 10. This patch includes all files for wordpress 2.6.3. To apply the patch, just override the current files.

    Good luck!

    Patch: swfupload_patch.zip

  21. mikechambers
    Member
    Posted 5 years ago #

    You can find a video interview with one of the Flash Player Product managers in which he goes into more details for the reasons behind this security change:

    http://theflashblog.com/?p=463

    And, as I posted about two months ago (in this thread), If anyone from wordpress would like to get in touch with someone from Adobe to discuss a solution, please feel free to contact me directly.

    mike chambers

    mesh@adobe.com

  22. Wolly
    Member
    Posted 5 years ago #

    Every time I find flash on a website I close the tab and skip on another website, I really hope that wordpress give up from flash.
    I don't like flash.
    ciao

  23. OperaManiac
    Member
    Posted 5 years ago #

    uploading more than 10 files without the flash uploader is going to be a pain in the ass. :)

    i hope they implement gears. it's pretty neat. google youtube i think is using gears for uploading multiple videos in one go.

  24. KPeregrine
    Member
    Posted 5 years ago #

    I posted about this problem 9 hours ago as "Can't upload images and must use Flash 10." I delayed loading Flash 10 until 2 weeks ago. My blog is on a TV station website that has Flash VIDEO everywhere - so I have to have it. Please, please fix this in WordPress. I simply cannot go back to Flash 9.
    And by the way, the machinations I tried today to go back to Flash 9 caused Firefox to crash. I went back up to Flash 10 & Firefox is better but still flaky. It dies suddenly for no reason.

  25. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    I'm working on implementing a Gears solution. I figured out how to make a Gears uploader (surprisingly easy), and am reading the WP code to figure out how to integrate it nicely and provide fallbacks. I doubt anybody will get it in until 2.8, but I'll see what I can do. I can say that Gears uploading is *sweet*. Fast and clean.

    If Flash is going to break things like this, then we can't rely on it. We have a patch that works in WordPress, but IMO the new SWFUpload is a bit of an ugly hack (no offense to the excellent work by the SWFUpload crew, I blame Adobe for this one entirely). Having to make a button in flash changes the look to where it no longer has the same look and feel as the browser's own buttons. Even the idea of making a button in HTML and covering it with a transparent Flash button strikes me as unbelievably stupid. Clever, but deranged. The idea is to be browser neutral here, people. That said, we'll probably leave Flash in as a fallback, if you don't have Gears.

    Furthermore, it means that we have to load and initiate a flash application to start with, when I'd much rather load it when the click occurs.

    Personally, I'm done with Flash for good because of this. This proves that it's simply not reliable enough for real-world usage. If they can't integrate with script properly, then there is no point in trying to use it for anything above the level of "toy". Flash is worth little more than a embedded video player now. It's kinda sad too, when they had such potential early on. So it's just too bad Adobe mucked it up and focused all development on the video aspects of it.

    @mikechambers: I'm not interested in discussing a solution. We don't write Flash code for WordPress, we used other freely available code, which Adobe broke. This is not a matter of us fixing it, it's a matter of us picking up their fixes, or us using a better solution than Flash.

  26. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    The new SWFUpload now in trunk, so it should be in 2.7.

  27. OperaManiac
    Member
    Posted 5 years ago #

    i hope gears comes to opera soon. other browsers already support it. :)

    waiting for 2.7 release before i upgrade to flash 10.

  28. crazyfish
    Member
    Posted 5 years ago #

    Did anybody try cyberolf patch that was post a few days ago?

  29. alexleonard
    Member
    Posted 5 years ago #

    Great work Otto!

    Look forward to the results of your labour :)

  30. alexleonard
    Member
    Posted 5 years ago #

    Oh, by the way, my own temporary solution for this has been to install Flash Player 9 into IE so that I can keep Flash 10 in Firefox et al.

    I didn't find any need to uninstall flash 10 and download anything more than the following:

    http://www.filehippo.com/download_flashplayer_ie/

Topic Closed

This topic has been closed to new replies.

About this Topic