Displaying 20 results from an estimated 1000 matches similar to: "File Upload Problem"
2006 Feb 04
0
form_tag_with_upload_progress
hi all!
i have a PictureController with an upload action:
class PictureController < ApplicationController
.
.
.
upload_status_for :upload
.
.
.
def upload
if params[:picture]
@message = "File uploaded: " + params[:picture][:file].size.to_s
picture = Picture.save(params[:picture])
session.update
finish_upload_status "''#{@message}''"
end
2009 Mar 30
1
Retrieving the context
Dear list,
I have a general problem that I really don't know how to solve efficiently
in R. Lets say we have a sequence of things, like for instance a string of
words, that is stored in a file. We need all the words in a table format, so
therefore we create an id for the word, that links the word to a file and
the position of the word within the file, like:
#In this case a very short file
2006 Mar 29
1
Posting multiple files - how to set up params correctly
All,
I have a page where I am allowing the user to specify multiple image
files that are related to one HTML document.
I want to end up with an array of image files that I can then assign
into an array within the controller.
I''m trying to set up my file_field correctly but am having trouble.
I''m not clear on how "the multiple input tags with the same name turning
into
2008 Sep 18
0
ActiveResource Breaking Under FastCGI
I''m developing a web service in rails which uses JSON as the transport
format. I also have a front end rails site that talks to that web
service to retrieve various bits of data. I''m using ActiveResource to
accomplish that.
When running my unit tests for the ActiveResource clients I''ve written
against a WebBrick server, they all pass fine. However when I run
them
2006 Aug 05
1
"uninitialized constant" error when I go to app base URL???
Hi,
I''m getting the below attached error when I navigate to the root of my
web application on my hosting site (dreamhost.com), however in
development it works fine. Any ideas?
That is I have one controller so the direct URL is
"http://mydomain.com/contacts". This works on dreamhost and locally.
BUT when I go to "http://mydomain.com/" this works locally (on
2006 Apr 01
0
Many file fields w/same name don''t show up as params array
All,
I have a page where I am allowing the user to specify multiple image
files that are related to one HTML document.
I''m trying to set up my file_field correctly but am having trouble.
I''m trying to post into an array of images that belongs to a document.
I''ve tried:
<%= file_field(''document'', ''image[]'') %>
<%=
2006 Aug 26
2
Dreamhost issues
Hi there!
I just have discovered this wonderful plugin a few days ago and I uploaded a
little test to my Dreamhost account. I simply got a worker that resizes an
image that the user uploads.
So this morning I launched the BackgrounDRb server on my account with the
rake task and began to upload some test images. The server daemon has been
executing until a few minutes ago, I suppose because of
2008 Jun 03
1
Asus M3A78-EMH HDMI NCQ-issues
Hi all,
I'm sure this eventually will be resolved with a BIOS or kernel update,
but in case someone experiences this on this or a similar motherboard, I
thought I'd post a problem-and-workaround report.
Platform CentOS5, x86_64 kernel-2.6.18-53.1.21.el5
Motherboard Asus M3a78-EMH HDMI
SATA-controller configured as AHCI
Experienced symptom; Periodic, ~20s lockups/freezes, several a
2006 Jul 21
6
Troubleshooting tips for getting Apache/RailsApp/Dreamhost
Hi,
Background: I''m currently stuck getting my basic rails application
working on dreamhost. I have gone throught the doco. Note that I can
via my unix account run "ruby script/server" and get the application
working via webbrick. The problem I am having is that trying to go to
the app via the normal apache approach my browser just sits and spins
with nothing coming
2008 Jul 14
1
about string error for upload file in rails 2.1
hello:
I have code for upload image file to server file system.This works
in rails
1.2.3.But in rails 2.1,it gets an error.
The following is the important code:
In a view:
<%form_for :user,:url=>{:action=>"register"},:html=>{:multipart=>true}
do |f|-%>
<p>
<label>照片</label>
<%=f.file_field "file"-%>
</p>
2006 Apr 21
4
WebDAV library for fastcgi/webbrick
Hello,
I am trying to find a WebDAV library for Ruby that works with fastcgi
(production) and Webbrick (development).
I''ve found this link which mentions a Webbrick WebDAV library:
http://redhanded.hobix.com/inspect/
webrickWebdavHandlerSafelyExtractedFromTheWild.html
Unfortunately it sounds limited to Webbrick which will not suit the
production environment.
Does anyone know of a
2010 Sep 20
0
file_field
At: http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm
You can find:
<%= file_field ''upload'', ''datafile'' %>
I saw the file_field documentation from here:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-file_field
But, still cannot get how the parameters ''upload'' and
2006 Mar 06
1
Uploaded File to Database
Hi,
I currently write a tool for my school. Therefore I have to save
uploaded files.
I bought Agile Web Dev. with Rails to learn webdev with Rails.
I''m very new at rails and couln''d find anything on the internet.
Now when I want to save the file data to the mysql database, rails gives
me an error.
My code is the same as written in the book on page 363.
Here is my code of the
2006 May 11
2
pages in /public cant find CSS
Hi everyone,
I have a rails project that I''ve been serving via WebBrick at work,
and its been working fine (low traffic). For the last few days I''ve
been trying to deploy it under Apache which already serves our groups
static and PHP pages. I have the dynamic rails part working now, but
am having problems with stylesheet references in static pages. My URL
using WebBrick was (and
2005 Dec 17
1
webbrick and logger output
Hi,
When I do:
logger.info "hello?"
I would expect it to output something from the webbrick output but it doesn''t
seem to. Am I doing something wrong? or is there another way of outputting
on the webbrick output?
Thanks,
-- Colin
2006 Jan 22
1
file_field questions
A couple questions about file_field elements.
First, with code such as this:
<%= file_field ''attachments'', ''filename'' %>
Would the filename of the file I select be the value that''s stored
within the database under the "filename" column, and then I would just
add in code in my "create" controller to upload the actual file?
2006 Jul 28
1
How do I get an original file name from an upload using file_field?
I am uploading a .csv file for importing into a database; however, this file
does not need to be saved on the server. How do I get the file name of the
original file? I know about the file_column plugin but I don''t need/want to
save the uploaded file on the server, I just need to import it and delete
it. Right now the file name get returned as some random temp file name...
there has to be
2006 Feb 06
2
File_field and Firefox
Hi!
Im developing a simple prototype of an application. It fills an oracle
db with data about a file in the filesystem, and save the entire file
in a blob along with some metadata. To get the file in the db i use a
file_field form helper. All goes well with the radrails-integrated
browser, but it doesnt work anymore in firefox. The problem is,
firefox seems to cut the pathname from the file.
Here
2009 Feb 11
0
remote_form_for file_field strangeness
Does anyone see any problem with this form?
- form_remote_for(Photo.new, :html => {:multipart => true, :target
=> :uploader}) do |f|
.form_element
= f.label :photo
= f.file_field :collateral
= hidden_field_tag :container_id, @shoot.id
= hidden_field_tag :container_type, @shoot.class.name
.form_element
= f.submit ''Add Photos''
The photo has a
2008 Oct 11
1
details on sata issues and mountroot prompt
I have previously written about a mountroot prompt, here are some details.
I have a system with an asus m3a78-emh hdmi board, a 74 gig raptor
drive, and a dual core amd am2 cpu. I have had this result with both
the amd64 and i386 systems. My steps were all conducted today as follows.
install 7.0 release
run freebsd-update
get src tree
build world
build and install kernel
reboot and be greeted