Forum: Ruby on Rails file upload browse button triggers action

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Peter V. (Guest)
on 2006-02-13 12:09
Hi,

I'm new to RoR and I have a file upload form with file_field. Whenever I
use the browse button to select the file name, my action (create) gets
triggered.
I only want the action to get triggered when the submit button is
pressed.

Is this possible or should I handle this in my create action,
redisplaying the form if submit was not pressed

How should this be done?

Thanks in advance

Peter van Paassen
This topic is locked and can not be replied to.