How to make has_attached_file dynamic depending on form values

My form submits with a column called stream_type, which can either be
"full", "30secs" or "90secs".

How can i set it so that it sets has_attached_file according to the
form value stream_type?

I am using Paperclip by the way

anyone?