Rails 2.1 SWFUpload Example

There’s been a few posts lately on getting SWFUpload working with Rails 2.1, attachment_fu and the restful-authentication plugins.

To try and make things easier, I’ve made a sample - albeit basic - Rails application to show other people how I managed it.

I’ve created a project on Github to host it, feel free to check it out and let me know how you get on. The only instructions you should need are in the README file, but feel free to leave comments here if you do need a hand.

Tags: , , , ,

8 Responses to “Rails 2.1 SWFUpload Example”

  1. John Says:

    Exactly what I was looking for! Thanks!!

  2. apollo Says:

    Thanks!

    You are my hero!

    thanks thanks thanks

  3. subblue Says:

    There are some fundamental changes in the Flash 10 player that prevents SWFupload from working. At the moment there aren’t any workarounds unfortunately. More info here: http://www.swfupload.org/forum/generaldiscussion/551

  4. Cameron Says:

    Still haven’t installed the FP10 beta yet, thanks for the heads up Tom!

  5. Chap Says:

    Thanks for this.

    It looks like your demo isn’t showing the progress bar for the uploads.

    Is this a change with SWFupload or some option somewhere?

  6. Cameron Says:

    Hey Chap, I’d somehow managed to not commit the SWFUpload CSS.

    Grab the latest from GitHub and this should be fixed.

  7. Chap Says:

    Thanks!

    Everything is working great locally, but for some reason when I upload to the server clicking the upload button does not make the file browser popup appear.

    Very strange… Anyone have this problem?

  8. Cameron Says:

    That sound suspiciously like you’ve got a JS error on your page. Try viewing your page in Firefox with Firebug installed - makes debugging JS errors a lot easier!

Leave a Reply