Displaying 20 results from an estimated 200 matches similar to: "Saving an upload"
2006 Mar 23
1
Multiple file uploads
I have a form with multiple file upload fields (1-10), of which 2-10
are optional. So i need to cycle thru all file fields and pick only
those that have a file attached. Selecting only one file in the form,
the paramters look simple: "image"=>{"file_1"=>#<File:/tmp/CGI344.4>,
"file_2"=>"", "file_3"=>""}, so I
2005 May 23
1
has_and_belongs_to_many dual insert error ?
Hi !
(See references at the end)
I have a slight problem. Whenever I save one of my domain models, which
contains an has_and_belongs_to_many relationship with another one, the
relationships are doubled.
My domain is a series of pictures, where each picture can be tagged with
one or more words. So, a picture of my dog could be tagged "Jordy, Dog,
Dog 2005", for example.
In my
2013 Sep 10
2
[Bug 2151] New: Call to upload_dir() has pflag and printflag swapped
https://bugzilla.mindrot.org/show_bug.cgi?id=2151
Bug ID: 2151
Summary: Call to upload_dir() has pflag and printflag swapped
Product: Portable OpenSSH
Version: -current
Hardware: Other
OS: Other
Status: NEW
Severity: trivial
Priority: P5
Component: sftp
Assignee:
2006 Jun 28
0
Reading email attachments
Is anyone sucessfully reading email attachments?
I have had some luck in my local dev environment but only get partial
files on my hosted server (TxD) and then only sometimes.
I use something like this....
Net::POP3.start("widespreadsolutions.com", nil, "briefcase", "y902xas")
do |pop|
if pop.mails.empty?
logger.info "NO MAIL"
else
2007 Apr 17
0
rflickr: invalid auth token when uploading
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, I''m working on an application which uses rflickr to upload images to
flickr. I''ve generated and cached an auth token as described in the
GETTING STARTED document in the rflickr tree. However, when I call the
API, I receive an error stating "ERR: Invalid auth token (98)". The
extended error is:
XMLRPC::FaultException
2010 Aug 06
4
nv vpe video decoder
Hello,
I have my work on the nv vpe video decoder in a functional
state. In case you didn't know this decoder accelerates mpeg2
video at the idct/mc level. I have verified that it works on
nv40 hardware. I believe it works on nv30 hardware (and
maybe some earlier hardware), but I cannot verify since I have
none.
I will reply with patches against the kernel, drm, ddx
and mesa for
2005 Dec 23
6
file_column and HABTM
I have several models that will be using file_column by way of the
"Picture" class (HABTM). Right now, all pictures are stored in:
public/picture/image/1/filename1.jpg
public/picture/image/2/filename2.jpg
Is there a way I can dynamically define the "store_dir" based on the
model? For example, if I have "user", "product" and "place" models all
2009 Jul 29
0
Problem uploading file to database mysql blob field
Hi All,
Please help me ,I need to look into this issue asap, I need to change
the redmine functionality of uploading files to disk to upload them to
database. I tried suggestion on
http://dizzy.co.uk/ruby_on_rails/contents/store-file-uploads-in-database
but no luck , My form is multipart but still getting the error.
Please bare with me I am new to ruby and rails.
Here is the like for my
2006 Jan 18
1
HABTM - Destroy just the relationship
If I have a HABTM relationship between two models (places, pictures),
can I delete the record from the join table without also destroying the
objects?
IE:
1. @places.pictures << @picture
2. @places.pictures.find( @picture.id ).destroy
I''d want line #2 (...or something similar unless I''m way off) to destroy
the record in pictures_places only, and not anything from the
2006 Nov 23
1
Problem with image caching
Hello,
I have a little problem with image caching. I have a Student model which
contains, for each student, a picture (picture_data for datas and
picture_type for the content-type of the picture). As I want to save
brandwidth, I followed the tutorial in
http://manuals.rubyonrails.com/read/chapter/62 for caching pictures. If
I test, as the tutorial suggests it, with curl, it''s working
2007 Jul 21
3
unable to get "has_many :after_add" to work - need help
Can someone tell me what I''m doing wrong? I''ve spent way too much
time on this
--------------------------------------------------------------------------------------
class Picture < ActiveRecord::Base
has_many :ratings, :after_add => :increment_rating, :after_remove
=> :decrement_rating
def increment_members(rating)
self.rating += rating.amount
save!
2006 May 18
1
ActiveRecord problems from within template
Hi,
my Film model has this:
has_many :live_action_personnel,
:class_name => "Credit",
:include => :credit_type,
:order => ''credit_types.position, credits.position ASC'',
:group => ''credit_types.personnel_type'',
2007 Sep 29
8
Inheritance problem in model
Hello,
I''ve got a problem with the inheritance as soon as I try to use it in a
model.
I''ve got plenty of items which can share a lot of code, so I created a
class "Item", which inherits from ActiveRecord::Base, but because it''s
not a "real item" but an interface, I set it abstract (writing
abstract_class? method).
Then I have all the differents
2006 Apr 04
3
newbie - HABTM problems writing to Join Table in SQL
I am attempting to document a join between two tables. There seems to be
no writing to my database. Please help me out it is driving me absolutly
crazy.
Basically i''ve got a table of directors that is called when the new/edit
controller model for films is activated. It shows the user a selectable
list of directors they can apply to films. The problem is in the
update/create part. I
2006 Aug 15
1
Problem with joining...
Hello,
I am quite new to Rails and i was wondering if i could get some help
to populate a join table?
I got (for example) a table called films, a table called acteurs and
a join table called acteurs_films. I have specified the HABTM
relationship and I manage to do it through the console by doing:
acteur=Acteur.new
acteur.name="blabla"
acteur.films << film
acteur.save
and
2006 May 02
0
Validation in File Upload
I have an app whose admin allows users to upload PDFs to populate a
"newsletter" section.
I''m having trouble getting validation to work properly.
I want to be sure that a name, description & file are specified in the
form.
The app seems to catch the error and won''t write a row to the DB but it
will create a file sized 0KB in the upload folder and it
2006 Jan 06
4
Upload Progress Bar Problems
I''m writing an application where the user will be uploading many images
and user feedback is essential.
I''ve been trying to get the upload progress bar plug-in to work, but
thus far have not had any success.
I''ve downloaded Sean Treadway''s application code from his site
http://sean.treadway.info/demo/upload/ and I followed the steps in his
Upload
2010 May 31
2
ckeditor "Browse Server"
I started with the ckeditor rails demo and everything worked
beautifully.
Then I deployed a couple of sites using a heavily customized "Easy"
toolbar and everything works great. In these instances I completely
disable any file upload or management capability.
Next, I implemented the "Full" version for another project so that I
could have the full functionality of the image
2006 Mar 29
7
Uploading files and writing them to server?
Where should I look for information on how to use Rails and Ruby to
accept the upload of a file and then to save that file to the file
system of my server?
I''m reading the "Uploading a file" section of Agile Web Dev with Rails,
but it''s geared toward saving the file in the database.
Any advice?
Thanks,
Jeff
--
Posted via http://www.ruby-forum.com/.
2013 Mar 28
1
Error Empty file upload result - problem with jQuery bulk file upload
I have problems with multiple file upload. I tried Paperclip with jQuery
file uplad plugin and get the error mentioned in the title. Files get
uploaded without problems, but I keep getting this embarrassing error.
Can somebody offer a solution to my problem or suggest alternative solution
that can be implemented in 2 hours? My client is getting a bit uneasy now.
I have tried everything I