search for: multipart

Displaying 20 results from an estimated 1596 matches for "multipart".

2010 Jun 14
9
Multipart forms by default?
Forms without explicit enctype are submitted as application/x-www-form- urlencoded. This is the default behaviour in Rails. However, this enctype does not allow transmission of binary data (files). Would it not make sense to specify the enctype multipart/form-data by default instead? i.e. all the form_for helpers would add this enctype to the form tag, unless overriden by the developer. This way, file uploads "just work" and normal key/value pairs continue to work as well. There is no downside. I browsed through lighthouse and only found...
2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi, does anybody know if TMail supports nested multipart messages? I read a changelog that indicates so (http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but I haven''t been able to get it working so far. Maybe I am doing something wrong here? I attached the sample mail. Here is the code to parse it: require File.di...
2008 Apr 25
2
multipart form_tag
I''m new to ruby, working on the book from Christian Hellsten & Jarkko Laine writen for RoR 1, so I had to adapt for RoR 2. I got the error : undefined local variable or method `multipart'' for #<#<Class:0xb714d388>:0xb714d360> Code : 1: <h1>Editing book</h1> 2: 3: <% form_tag( {:action => ''update'', :id => @book}, multipart => true ) do %> 4: <%= render :partial => ''form'' %> 5: <%= sub...
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ? My form looks like this: <%= form_remote_tag :url => { :action => ''do_image_upload'' }, :html => { :enctype => ''multipart/form-data'' } %> <%= file_field ''image'', ''file_data''...
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
I would like to post a new photo to a user using `Net::HTTP::multipart` from a Heroku application to Facebook. I have the following JSON object: {"message"=>"My message", "image"=>#<ActionDispatch::Http::UploadedFile:0x00000004242490 @original_filename="neEZYMAnBI.jpg", @content_type="application/octet-stream...
2014 Jun 09
2
Subject tag is gone
...atures. So if somebody still uses Subject-based filtering it's about time to switch to List-ID header based filtering now. Another thing I'm wondering about is if I should allow text/html parts, because removing them will also break the DKIM signatures. Or mainly I'd like to allow only multipart/alternative with text/plain + text/html, but I don't think I can configure Mailman to support that.
2008 Jan 14
5
Only "form_tag" support uploading file?
...i, there: I wanna use plug-in "file_column" to upload image to the server. In my test app, the view is as follow & it works well: ==================== <h1>New entry</h1> <%= error_messages_for ''entry'' %> <% form_tag ''create'', :multipart => true do -%> <p><label for="entry_image">Image</label><br/> <%= file_column_field ''entry'', ''image'' %></p> <%= submit_tag ''create'' %> <% end -%> <%= link_to ''Back'...
2006 Feb 01
3
Problem using form_remote_tag and multipart
I have a form and e file field, and what I''m trying to do is when the file is uploaded, a div shows the uploaded image using ajax, without refreshing the page. But the problem I''m having is that with form_remote_tag it won''t accept :multipart => true. Any ideas? Thanks a lot
2005 Nov 21
1
How to add the footer to multipart emails
I recently lerned that Mailman adds its footer to MIME multipart messages by putting the original message in the first part of a new multipart/mixed entity and the footer in the second part, with Content-Disposition: inline. It works well in Thunderbird at least, i.e. the footer is visible; the glitch is that the footer shows up as an attachment as well, as does...
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
With earlier versions of Rails ActionMailer used to implicitly send multipart (text/plain and text/html) email messages for me, but it looks like now it''s sending two text/plain parts. Simplified details: Here''s my model: class Notifications < ActionMailer::Base def confirmation(sent_at = Time.now) @subject = ''Thank you for registeri...
2010 Feb 14
2
paperclip is making me crazy
...hed_file :pic_1, :styles => { :thumb => "120x90" }, :url => "/:attachment/:id_:style.:extension", :path => ":rails_root/public/system/:attachment/:id_:style.:extension" my view... <% form_tag(:action => ''create'', :html => { :multipart => true }) do -%> <label for="ad_pic_1">Image</label> <%= file_field ''ad'', ''pic_1'' %> <%= submit_tag '' Save '', :class => ''button'' %> and I save and the development.log shows expec...
2016 Jun 24
2
PJSIP Multipart Body
Hi, I want to pass a part of a SIP INVITE multipart body. I found a quite old patch here: https://issues.asterisk.org/jira/browse/ASTERISK-14510?jql=text%20~%20%22body%20part%22 But this patch is for the SIP channel driver not PJSIP, right? Is it even possible without a patch? What do I have to put in the dialplan then? Thanks in advance, Sim...
2006 Apr 17
2
Email Multipart message
Hi, I use the multipart functionality from the action mailer. But when i send an html message, my outlook opens the mail and shows this: --mimepart_4443b76d12268_6f34..fdacc616831e6 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline <!!Message> =...
2008 Jun 11
1
multipart/form-data
Hi, I`m new for here. Im trying to use prototype in my administration console, but, i need to upload 2 files, my server application requires that form be encoded using multipart/form-data, how can i do this using prototype? (i can'' submit the form, because the page cannot be refreshed) Best Regards, Ari Zanuto --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinof...
2007 Apr 24
1
Testing for multipart form uploads
Hi, I''m trying to do integration tests that require uploading files via multipart posts. Have seen a very similar discussion, but cannot get it to work. Maybe, it''s out of date now with Rails 1.2.3: http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/fdfd2c040a2425f4 >From what I understand, fixture_file_upload''s output is translated a Stri...
2009 Mar 27
0
ActionMailer multipart: html, plain and attachment?
...the plain text alternatives, but also include an attachment? Reason I''m asking: I''m sending out event notices, styled as HTML but with a plain text alternative. I also want to attach the .ics file. For some reason, I can''t get this to work. If I explicitly put in "multipart/mixed" (to support the attachment) it won''t do the two alternatives. If I explicitly put in "multipart/alternative" (to support the HTML and plain text parts), it won''t show the attachment. Is this a Rails/ActionMailer issue or am I just missing something with how...
2009 May 20
2
Rails 2.3.2 Multipart Emails
I''m trying to send implicit multipart emails with Rails 2.3.2. I have the files as in the past: mailer_action.text.plain.erb mailer_action.text.html.erb When I run my tests, everything looks good. When I deliver email from the console running in production mode, everything looks good. When my controller calls the method, it uses t...
2006 May 02
3
file_column : _temp field always nil
Hi, I''m trying to set up file_column to upload attachments for emails. My view has <td align="left"><%= file_column_field ''to_do'', ''attachment'' %></td> and the attachment_temp hidden field is generated. When I inspect tthe params on saving the form the attachment_temp param is always an empty string. Also, when I was
2008 Sep 02
2
Actionmailer - Multipart and Outlook?
..., Thank you." : options[:message] subject "subject" recipients options[:recipients]||'''' from options[:from]||'''' cc options[:cc]||"" bcc options[:bcc]||"" content_type "multipart/alternative" part :content_type => "text/plain", :body => render_message("ticket_email.text.plain.haml", :message => msg) part :content_type => "text/html", :body => render_message("ticket_email.text.html.haml", :message => ms...
2006 Mar 07
2
file_upload ... won''t
...the Browse button to select a file ... but ... When I try to submit the form, I get a crash : TypeError in Scripts#create Do not know how to handle a string with value ''jim.jpg'' that was passed to a file_column. Check if the form''s encoding has been set to ''multipart/form-data''. I guess I must have missed a trick somewhere else. There are no records in the table (to be expected, but worth checking) Where should I be looking next to figure this out? -jim