Displaying 20 results from an estimated 7000 matches similar to: "Multipart forms by default?"
2007 Feb 02
7
Mongrels 1.0.1 falling asleep w/ Rails 1.2
I''m a bit surprised I can''t find anything about this in the mailing
list archives. Basically since Mongrel 1.0.1 I''ve had Mongrels fall
asleep without any real cause. A deep sleep, actually more like a
coma. The mongrel in question (I''m using a cluster of three) can not
be revived. A cluster::stop, then cluster::start is nessesary.
A ::restart would not
2007 Mar 06
4
[PIMP] Topfunky''s httperf PeepCode screencast (Zed A. Shaw)
Hi,
Thanks Zed - this is very interesting. One item in particular caught my
eye: Does anyone on this list have any comments or validation that
Rails 1.2.1 is 2-4 times as slow as Rails 1.1.6? Topfunky provided a
link that purports what looks like really horrible performance and
memory characteristics for Rails 1.2.1, even v. 1.1.6:
2007 Mar 10
5
Mongrel Hangs After Idle Period
I had posted a thread couple of weeks ago whereby mongrel just mysteriously
stops interacting with my application after an idle period...usually less
than 8 hours.
http://rubyforge.org/pipermail/mongrel-users/2007-February/002908.html
I had hoped this would go away after a few upgrades but to know avail.
Interestingly, the process does not die...it still accepts HTTP requests but
does not
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'', :size => 32 %>
<%= submit_tag
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
I have a simple form , with a file field
= form_for (Clip.new), :html => {:multipart => true} , :remote =>
true , do |f|
= f.hidden_field :user_id, {:value => current_user.id}
= f.text_field :name
= f.text_area :description
= f.file_field :image
= f.submit I18n.t(:add)
generating the html code
<form accept-charset="UTF-8"
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 Jul 08
6
Data type of input type file
If I have a form that includes something like:
<input type="file" name="file_content" />
and I try to get at the file content using:
params[''file_content''].read
I get:
undefined method `read'' for "filename":String
where "filename" is the *NAME* of the file that was assigned to
"file_content" in the input tag.
2010 Jun 21
3
Improve the Rails Lighthouse overview page
Hello,
I have a suggestion to improve the Rails Lighthouse overview page. At
present the description is very large. You need to scroll to find the
tickets and more importantly the list of pages.
I think a shorter description along the lines of http://i48.tinypic.com/2z6a7lt.png
would be much better. All the information at present in the
description can be moved into pages, and they can be linked
2005 Dec 14
3
image upload (apache2.0+ lighttpd)
Hello all,
I use lighttpd 1.4.8 and I have a problem with image uploads.
I tried file_upload plugin, but it is strangely working sometimes and
refuse to work sometimes.
Function in the controller is (@user is loaded in before_filter)
def update_watermark
@user.watermark = params[:user][:watermark]
@user.save
redirect_to :action => "index"
end
Model is
2007 Jan 26
1
File upload problem with enctype
Hi All,
I''m having a problem with a simple file upload page. I''ve narrowed it
down to the enctype attribute of the form tag. Here''s my form:
<form action="/app1/gpxdata/upload_gpxfile" method="POST"
enctype="multipart/form-data" >
<input type="file" size="50" id="gpxfile" />
<input
2006 Mar 23
2
newbie - form_tag with get?
I can''t create a form with method "get".
The rhtml code:
<%= form_tag :controller => ''teritory'', :action => ''add'', :method => ''get'' %>
The generated html code:
<form action="/teritory/add?method=get" method="post">
What i''m doing wrong?
--
They say money can''t
2007 Feb 21
19
Critical Issue - Site down...
We have a site that is running Mongrel and is down.
Below is the Mongrel log file information.
The server is a Linux server with 2gb of RAM.
EV1 (hosting site) says that since this is a Linux server that the RAM
is cached and that there is plenty of free memory available.
Can anyone make sense of this error and have some suggestion of options
that I may take to correct this issue and get
2006 Jul 22
17
Problem getting form_remote_tag to work with image upload
Hey guys,
I am trying to pass the parameters for the file being upload, but the
params[] are not being passed. Ive read through some posts and realize
this is an issue with RoR.
I read through some of the posts and someone suggested using:
http://svn.kylemaxwell.com/form_remote_upload/trunk/
I tried to install it, and although I thought I installed it correctly,
it doesn''t work.
2007 May 12
3
Setting form-values
Hi,
I''ve recently had some trouble setting form values in my code - for example:
require ''rubygems''
require ''mechanize''
def save(pagename, content, editsummary = '''')
agent = WWW::Mechanize.new
agent.user_agent = ''Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)''
page =
2012 Dec 25
2
Vxml record voice parameter
Hi, I am working on vxml to record voice. I have trouble with getting url
of recorded voice. I want to save and I am using java to get record
parameter from url and it returns a string which is
audio/basic:len(123123):p0x5a6e6241, but I want to get file object or
base64 string with parameter or to relate returning string with path in
asterisk server, are there any way to do this?
--
2006 Jun 16
2
Javascript error?
Hi, I''m trying to get this progress bar plugin working, but I''m
having some trouble.
I''m running Apache 2.0.52 with mod_fcgid on Mac OS X. Everything
seems to be working fine, but the progress bar simply doesn''t work.
In my log I get:
Multipart upload with progress (id: 1, size: 176731770)
Finished processing multipart upload in 18.96244s
but no requests in
2006 Jun 28
2
Ajax - Upload File Upload
hello, i have a problem. I want to upload a file with ajax and the
following tag:
submit_to_remote ''button_save'',''Speichern'',{
:url => {:action => ''ajax_update'', :id => @product},
:update => ''formular''
}
it doesn''t work, my form_tag looks like:
form_remote_tag(:url => {:action =>
2004 Feb 23
1
HTTP Post connections in R
Hi,
Is there any existing functions to open an HTTP
connection and HTTP POST some R data?
like
<form method="post" enctype="multipart/form-data">
etc.
</form>
but within R.
Thanks,
=====
Nathan Whitehouse
Statistics/Programming
Baylor College of Medicine
Houston, TX, USA
nlwhitehouse at yahoo.com
http://rho-project.org: rho- open source
2008 Aug 19
5
RSpec raising routing errors where Rails doesn''t?
Hopefully someone here can help me figure out why the ERB:
<% form_for(@fund, :url => {:host => PRIVATE_HOST}, :html => {:class
=> ''fund'', :multipart => true}) do |f| %>
raises an error in my specs:
No route matches {:action=>"index"}
but works fine in my app and generates the following, desired HTML:
<form
2006 Dec 17
1
file_column error: StringIO Instead of Temp_File
Hi all,
i am using file_column to upload 3 images from the same form, they are
all different names and DOM IDs so there isn''t a problem with the
multiple upload.
The problem is when i try to upload a file (or 2, or 3) sometimes it
works, but sometimes i get this in the log file:
"bar_image"=>{"file_temp"=>"",