Hi, I would suggest to configure file column to store it somewhere else. Alternatively, you could use paperclip or carrierwave as well.
Extract from file_column plugin documentation: # == Custom Storage Directories # # FileColumn's storage location is determined in the following way. All # files are saved below the so-called "root_path" directory, which defaults to # "RAILS_ROOT/public". For every file_column, you can set a separte "store_dir" # option. It defaults to "model_name/attribute_name". # # Files will always be stored in sub-directories of the store_dir path. The # subdirectory is named after the instance's +id+ attribute for a saved model, # or "tmp/<randomkey>" for unsaved models. # # You can specify a custom root_path by setting the <tt>:root_path</ tt> option. # # You can specify a custom storage_dir by setting the <tt>:storage_dir</tt> option. # # For setting a static storage_dir that doesn't change with respect to a particular # instance, you assign <tt>:storage_dir</tt> a String representing a directory # as an absolute path. # # If you need more fine-grained control over the storage directory, you # can use the name of a callback-method as a symbol for the # <tt>:store_dir</tt> option. This method has to be defined as an # instance method in your model. It will be called without any arguments # whenever the storage directory for an uploaded file is needed. It should return # a String representing a directory relativeo to root_path. # # Uploaded files for unsaved models objects will be stored in a temporary # directory. By default this directory will be a "tmp" directory in # your <tt>:store_dir</tt>. You can override this via the # <tt>:tmp_base_dir</tt> option. -- Volker On Aug 8, 11:10 pm, p k <[email protected]> wrote: > I need to use the file upload functionality in AS. I read that I can > use file column bridge in AS that uploads the file to the filesystem. > However, I need to store the file in another data source. Whats the > best way to go about this? > > Thanks! -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
