similar to: Extracting email attachments.

Displaying 20 results from an estimated 11000 matches similar to: "Extracting email attachments."

2005 Dec 31
4
How might I use file_column for incoming email attachments?
I''m writing a ''Mailman'' model that catches emails sent to my application (kind of like backpack, I think). The trouble is that I''d like to save image attachments in the same was that file_column saves them--in fact, I''d really like to use a simple assignment like photo.image = attachment to save the image in its proper place. However,
2006 Apr 28
0
Extracting Email Attachment Content
If an email incoming to Actionmailer has an .htm attachment, how is it possible to extract the file''s text (the html text in the file) to insert into the database? I''ve tried reading the attachment like so, theFile = File.open(attachment.read, "r"), to no avail. But that fails stating that there is no such file or directory (but the attachment is there for certain).
2011 Jan 21
3
File Column open tmp file
Does anyone know how to open a file like the below? "Filedata"=>#<File:/var/folders/9D/9D8PtWGBFgmSvF-Ue+uD9++++TI/-Tmp-/RackMultipart20110121-7108-6aqdij-0>} file_column is used to upload a document and i need to open it just with the information above, Any ideas? JB -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the
2006 Jun 05
1
file_column permissions
this is getting frustrating... i installed file_column without a hitch for the first time to just play around with. using the exact same steps as before, i try to use it with one of my actual applications, and i get "permission denied" errors. i figure there might be some conflict with my application so just for kicks i do the exact same thing i did the first time to test
2006 Jul 20
1
file_column - assigning with an actual file rather than a multipart
Hi there, I''m using the wonderful file_column and have struck an issue that someone might have seen before. My images already sit on the server. So, instead of passing a multipart message I''m sending a file object. Something like... f = File.new("public/gallery_images/builder.png") p = Product.find_first p.image = f p.save On the save I recieve an error which
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi, I''m on Windows and getting the following error while trying to use file_column with RMagick, uninitialized constant Magick C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'' #{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in `file_column'' I installed file_column by
2006 Feb 13
3
file_column: uninitialized constant Magick
I am getting this following error when using file_column with RMagick: uninitialized constant Magick /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ active_support/dependencies.rb:200:in `const_missing'' ./script/../config/../vendor/plugins/rails_file_column/plugins/ file_column/branches/kyle/lib/file_column.rb:621:in `file_column''
2006 Jan 17
3
file_column :root_path question.
I''m developing on Windows and deploying to FreeBSD+lighttpd using Switchtower and I''ve got things generally working. My problem now is that file_column data gets zapped every time I deploy, because Switchtower creates a whole new myapp/public directory with each rev. I looked through the file_column docs and found the :root_path option, which I use in my models as follows:
2006 Jul 27
0
Separating file_column upload directory by account
I''m working on an app right now that uses http://www.kanthak.net/opensource/file_column/index.html Sebastian Kanthak''s file_column plugin for file uploads. The usual directory structure it saves to is: model/attr/id/filename For my current project, I''d like to separate uploads by account so that it''s easier to monitor an account''s resource usage.
2006 Jun 20
0
file_column Trying to Create Thumbnails of Non-Image Files??
Howdy. We use the handy file_column plug-in in some of our apps. We have a model with a file field and we upload both images and non-images into this field. It is specified as follows: file_column :file_uri, :magick => {:versions => {:thumbnail => {:size => ''200x''}}} Well, it works great for images but for non-images, the save fails. The root cause is an
2006 Mar 16
0
problem with file_column storing images and other files
I have a model called ProductFiles which associates an arbitrary amount of image and documents with a product. I am using the file_column plugin to manage the upload and storage of the images, like so: class ProductFile < ActiveRecord::Base # Accepted MIME types, mime types that are not part of this list are rejected MIME_EXTENSIONS = { "image/gif" => "gif",
2006 Feb 16
1
file_column problem
I cannot get the file_column plugin to work. Probably something stupid I am doing wrong as I am pretty much a newbie... 1. I added a varchar column to my table called "image" 2. This is my class: class User < ActiveRecord::Base file_column :image, :magick => { :geometry => "80x80>" } attr_accessor :new_password ... rest of class 3. In my controller I
2006 Apr 12
5
File upload doesn''t work in production mode
Can anyone understand what the production.log file is telling me. I''ve tried playing with the permissions for the folders and it makes no difference. Every time I submit the form to upload the file I get "Application error (Rails)" which doesn''t really help. Processing DocsController#create (for 82.152.151.194 at 2006-04-12 12:44:13) [POST] Session ID:
2006 Jan 16
3
file_column error
Hi, Sebastian I downloaded FileColumn plugin and love the concept. But when I tried the example listed on the plugin web site, I got the following error: NoMethodError in Entry#new undefined method `file_column'' for Entry:Class My environement is Red Hat linux 9.0 with mysql 4.1. I installed file_column under vendor/plugins. If I run "ls", I get the following
2006 Mar 16
2
Questions about file_column plugin
Hi! I''ve got 2 models - let''s call them User and Image. User has_many images. (Thanks to Mark Reginal James :) ) I have a single form where i can create a user and add to him any number of images, which are uploaded using file_column plugin. Now 3 questions: 1. How to change the default path where file_column plugin saves images, so it will save them in a directory, which
2006 Jul 13
0
file_column
Hello all, another rails newbie here. I''m working on an project to simply upload pictures with some extra information, I was able to get uploads working thanks to file_column, however, a couple things are troubling me. First of all, according to the file_column website, displaying images should go like this: <%= image_tag url_for_file_column("entry", "image")
2006 Feb 17
0
file_column generating random empty images
Hi all, I emailed Sebastian awhile back about this, but I know he is busy, so I''m asking for your help. I''m using the latest version of file_column from SVN, or the non-SVN version (doesn''t matter), but on some files, file_column will create 0kb files. The tmp directory will contain the correct file size, and I copied the temp over the 0kb file, and then it
2006 Sep 16
0
file_column - on_save Proc and marsheling
Hi All, Using file_column, when I set a file_column field to nil file_column adds an on_save method using a Proc. This blows away marshalling and hence the ability to store this model into a session once I have nilified the field. def on_save(&blk) @on_save ||= [] @on_save << Proc.new end Has anyone got a fix or workaround for this? I am using file_column 0.3.1
2006 Jan 17
2
file_column plugin and instance variables
To make file_column work I have to copy my local variable back to an instance variables like this: <% for product in @products @product = product %> <div class="catalogentry"> <%= image_tag url_for_file_column(''product'', ''image_url'') %></p> This is needed because file_column specifically looks for the instance
2006 Jun 04
4
"can''t convert Magick::GravityType into Integer"
Am having trouble with file_column -- on certain crop operations, it says: A TypeError occurred in [controller]#[action]: can''t convert Magick::GravityType into Integer [RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in `crop'' Any advice? Here''s the backtrace: [RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in `crop''