Hi guys Im new to rails i would like to create app with swf file upload with multiple file upload, is that any sample app is available with multiple file uploads plz give me some reference for me Ur''s Mahesh
http://github.com/JimNeath/swfupload---paperclip-example-app/ git://github.com/cameronyule/yui-uploader-rails-authentication.git
On 28 Aug 2009, at 08:25, mahesh wrote:> Im new to rails i would like to create app with swf file upload with > multiple file upload, > is that any sample app is available with multiple file uploads plz > give me some reference for mehttp://www.google.com/search?client=safari&rls=en&q=paperclip+swfupload&ie=UTF-8&oe=UTF-8
mahesh wrote:> Hi guys > > Im new to rails i would like to create app with swf file upload with > multiple file upload, > is that any sample app is available with multiple file uploads plz > give me some reference for me > > Ur''s > MaheshUse Acts_As_Attachment plugin http://www.flex888.com/122/multiple-file-upload-with-ruby-on-rails-acts_as_attachment.html -- Posted via http://www.ruby-forum.com/.
On 28 Aug 2009, at 09:34, Nik Cool wrote:>> Im new to rails i would like to create app with swf file upload with >> multiple file upload, >> is that any sample app is available with multiple file uploads plz >> give me some reference for me >> >> Ur''s >> Mahesh > > Use Acts_As_Attachment plugin > > http://www.flex888.com/122/multiple-file-upload-with-ruby-on-rails-acts_as_attachment.htmlActs_as_attachment has been replaced a long time ago with attachment_fu, this post dates from two years ago. But indeed, you could use attachment_fu instead of paperclip, that''s personal preference. Paperclip does have a few advantages over attachment_fu if you need custom processing though (video thumbnailing etc). Not that it can''t be done with attachment_fu, but I can''t help it feeling a bit hacky to say the least. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you guys i got the solution with help of ur reference, now im trying to view the file when im clicking the appropriate link i got the result when im try to show the image but i have a problem when im try in to some other file like pdf or doc .etc in my controller i use the following code for show my file asset_controller.rb def show puts params.inspect @asset = Asset.find(params[:id]) @file_path = ENV["PWD"] +"/public/#{@asset.public_filename}" content_type = @asset.content_type send_file(@file_path , :type => content_type, :disposition => ''inline'') end show html.erb i use the following code to show the image: <%= image_tag(@asset.public_filename) %> what can i do for show the other file Ur''s Mahesh On Fri, Aug 28, 2009 at 1:37 PM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org>wrote:> > On 28 Aug 2009, at 09:34, Nik Cool wrote: > > Im new to rails i would like to create app with swf file upload with > > multiple file upload, > > is that any sample app is available with multiple file uploads plz > > give me some reference for me > > > Ur''s > > Mahesh > > > Use Acts_As_Attachment plugin > > > http://www.flex888.com/122/multiple-file-upload-with-ruby-on-rails-acts_as_attachment.html > > > Acts_as_attachment has been replaced a long time ago with attachment_fu, > this post dates from two years ago. But indeed, you could use attachment_fu > instead of paperclip, that''s personal preference. Paperclip does have a few > advantages over attachment_fu if you need custom processing though (video > thumbnailing etc). Not that it can''t be done with attachment_fu, but I can''t > help it feeling a bit hacky to say the least. > > > Best regards > > > Peter De Berdt > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---