Cameron Yule

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.

Published on July 31, 2008 in Programming
Tags: , , , ,

Comments

Join the discussion by leaving a comment, or trackback from your own site.

John commented on 31/07/2008:

Exactly what I was looking for! Thanks!!

apollo commented on 03/08/2008:

Thanks!

You are my hero!

thanks thanks thanks

subblue commented on 07/08/2008:

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

Cameron commented on 08/08/2008:

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

Chap commented on 27/08/2008:

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?

Cameron commented on 27/08/2008:

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

Grab the latest from GitHub and this should be fixed.

Chap commented on 06/09/2008:

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?

Cameron commented on 18/09/2008:

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 comment

Comments are moderated, so be nice!