search for: upload_path

Displaying 3 results from an estimated 3 matches for "upload_path".

Did you mean: load_path
2006 Jan 09
1
Saving an upload
...ttr_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 = "#{upload_dir}/#{filename}&q...
2010 May 31
2
ckeditor "Browse Server"
...image uploads, etc. I installed the paperclip bundle, manually created my assets/pictures folder and manually copied the assets table from the demo app. Everything works beautifully in the upload department. But when you click "Browse Server" it throws an application routing error. var upload_path = "<%= new_attachment_path_with_session_information(:image) %>" which is in the images.html.erb After a couple of hours of unsuccessfully trying to correct the configuration, and then attempting to disable the button altogether, I resorted to crude hackery and simply overwrote all...
2013 Mar 28
1
Error Empty file upload result - problem with jQuery bulk file upload
...his: def to_jq_upload { :files => [ { :name => upload_file_name, :type => upload_content_type, :size => upload_file_size, :url => upload.url, :delete_url => upload_path(self), :delete_type => "DELETE" } ] } end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it,...