search for: upload_dir

Displaying 4 results from an estimated 4 matches for "upload_dir".

2013 Sep 10
2
[Bug 2151] New: Call to upload_dir() has pflag and printflag swapped
https://bugzilla.mindrot.org/show_bug.cgi?id=2151 Bug ID: 2151 Summary: Call to upload_dir() has pflag and printflag swapped Product: Portable OpenSSH Version: -current Hardware: Other OS: Other Status: NEW Severity: trivial Priority: P5 Component: sftp Assignee: unassigned-bugs at mindrot....
2006 Jan 09
1
Saving an upload
...acts_as_list :picture_id attr_writer :parent_id attr_writer :type validates_presence_of :filename, :content_type def after_save p self.inspect # If a file was uploaded, save it if @temp_file # Check the existence of the dir before writing #item = get_parent #upload_dir = File.expand_path(UPLOAD_PATH) + "/#{item.class}/#{item.id}/" upload_dir = File.expand_path(UPLOAD_PATH) + "/#{@type}/#{@parent_id}/" if !File.exists? upload_dir Dir.mkdir upload_dir end # Save the file to /films/123/foo.jpg destfile = &q...
2007 Sep 29
8
Inheritance problem in model
Hello, I''ve got a problem with the inheritance as soon as I try to use it in a model. I''ve got plenty of items which can share a lot of code, so I created a class "Item", which inherits from ActiveRecord::Base, but because it''s not a "real item" but an interface, I set it abstract (writing abstract_class? method). Then I have all the differents
2013 Jul 25
122
[Bug 2130] New: Bugs intended to be fixed in 6.4
https://bugzilla.mindrot.org/show_bug.cgi?id=2130 Bug ID: 2130 Summary: Bugs intended to be fixed in 6.4 Product: Portable OpenSSH Version: -current Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: Miscellaneous Assignee: unassigned-bugs at