I''d like a user to be able to upload (and remove) images that are associated with a certain item. Is the version of Ajax that''s in the latest stable Rails capable of doing so? If so, how would I go about it? Thanks, Joe
Hi Joe, You can''t upload any files with Ajax (form_remote_tag), because it''s technically not possible. You have to use a normal HTML form for this. Thomas Am 10.05.2005 um 06:59 schrieb Joe Van Dyk:> I''d like a user to be able to upload (and remove) images that are > associated with a certain item. > > Is the version of Ajax that''s in the latest stable Rails capable of > doing so? If so, how would I go about it? > > Thanks, > Joe > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Here''s a HOWTO on how to upload files with Rails: http://wiki.rubyonrails.com/rails/show/HowtoUploadFiles Regarding AJAX, if what you''re thinking about is the Ajax upload progress thing, AFAIK it is not in current Rails (but will be in next version?). You''ll have to install a patch. Here''s a link: http://sean.treadway.info/demo/upload /simon On 5/10/05, Thomas Fuchs <thomas-9D208sng4xU@public.gmane.org> wrote:> > Hi Joe, > > You can''t upload any files with Ajax (form_remote_tag), because it''s > technically not possible. > > You have to use a normal HTML form for this. > > Thomas > > Am 10.05.2005 um 06:59 schrieb Joe Van Dyk: > > > I''d like a user to be able to upload (and remove) images that are > > associated with a certain item. > > > > Is the version of Ajax that''s in the latest stable Rails capable of > > doing so? If so, how would I go about it? > > > > Thanks, > > Joe > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- http://helgo.net/simon/weblog/ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
To cast a little bit more light onto this subject: The Ajax upload progress patch uses Ajax _only_ for showing the progress, not for the upload itself. It does this with a hidden <iframe> where are standard HTML form posts to. But: It does this quite cleverly, so you won''t have to worry about how it does what it does to much... :) It hasn''t made it into Rails yet, but should soon. -- Thomas Am 10.05.2005 um 13:44 schrieb Simon Kågedal:> Here''s a HOWTO on how to upload files with Rails: > > http://wiki.rubyonrails.com/rails/show/HowtoUploadFiles > > Regarding AJAX, if what you''re thinking about is the Ajax upload > progress thing, AFAIK it is not in current Rails (but will be in > next version?). You''ll have to install a patch. Here''s a link: > > http://sean.treadway.info/demo/upload > > /simon > > On 5/10/05, Thomas Fuchs <thomas-9D208sng4xU@public.gmane.org> wrote: > Hi Joe, > > You can''t upload any files with Ajax (form_remote_tag), because it''s > technically not possible. > > You have to use a normal HTML form for this. > > Thomas > > Am 10.05.2005 um 06:59 schrieb Joe Van Dyk: > > > I''d like a user to be able to upload (and remove) images that are > > associated with a certain item. > > > > Is the version of Ajax that''s in the latest stable Rails capable of > > doing so? If so, how would I go about it? > > > > Thanks, > > Joe > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > http://helgo.net/simon/weblog/ > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails