Omgili - forum search, search forums  
  

Discussions about db attachment

Displaying 1 - 10 out of 16,775 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I have a model, let's say Attachments, that uses attachment_fu to accept file uploads from the user. I want to "deep copy" (or in Ruby-ese, deep clone) an Attachment, thus creating a completely new binary object in the "db_files" table. I've found that...
Started by on , 3 posts by 3 people.  
TechnoweenieThis is just a partial response explaining the build_db_file call As you suspected, the build_db)) unless Object.const_defined....
Someone to "modify" an attachment db_file in situ but since we don't, this works great.
Hi, How do I send mail via PHP with attachment of HTML file? -> Content of HTML file (code) is in string in DB. Is there some easy way or free script to do this? I don't want to store the file localy, I need to read it out of DB and send it straightaway...
Started by on , 4 posts by 4 people.  
If you have a hard time getting the headers right... .
You will simply need to adjust your code to read a string from the database instead of reading the contents of a file .
You should be able to follow these instructions on sending email attachments.
Hey everyone, Struggling to workout when i add the following validtion to my Voice model using paperclip, it is being triggered when i try and upload an mp3: class Voice < ActiveRecord::Base has_attached_file :clip validates_attachment_presence :clip...
Started by on , 3 posts by 3 people.  
I simply removed the validation, viewed in the db what the content_type.
Just being silly, sorry.
Ask your Facebook Friends
I am building a gallery index of Items in which some Items have photos and others do not. I would like to grab all of the Items (or a subset with will_paginate) and sort them first by the items with a photo (attached via Paperclip) and then by the record...
Started by on , 3 posts by 3 people.  
ORDER BY CONV(photo_file_name....
You shouldn't need to create an additional field, instead convert the filename to boolean on the fly with CONV (I'm making an assumption you are running this on MySQL - but equivalent functions are available on other RDBMS) .
Hi, I generate PDF's using FPDF and I need to email it to a customer. Since I can generate the PDF's from the DB, I don't want to save all the PDF's locally as it will clutter up my server. I want to be able to send an email with a PDF attached. Do I ...
Started by on , 3 posts by 3 people.  
It must be unique chunks $attachment = chunk_split(base64_encode(file_get_contents('attachment.zip'))); //define the body-Disposition: attachment &....
Of the email $subject = 'Test email with attachment'; //create a boundary string.
Access added a new data type in the 2007 version--the Attachment type. We are currently working on a WinForms application with .NET 3.5 (C#) that uses an Access 2007 database. We want to be able to add new attachments through the WinForms interface. I...
Started by on , 5 posts by 5 people.  
It sets a Recordset2 type object equal to the value of the attachment a reference to Microsoft.Office....
So, my suggestion is suggesting with a bit of a twist .
The attachment functions are members of Field2 but not Field.
Field and Field2.
I've created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to .sql files and packages them together as a compressed .tar file. The next step I want to accomplish is to send that tar file through...
Started by on , 6 posts by 6 people.  
You can use mutt to send the email with attachment mutt -s "Backup" -a mysqldbbackup.sql -c mysqldbbackup.sql | uuencode mysqldbbackup.sql.gz | mail -s "MySQL DB" backup@email.com.
I have a .Net app that will allow the users to attach files to a SQL Server 2005 database. I want to limit the filesize to 10MB, so from what I can tell, I have to declare the datatype varbinary(max), since the max size I can actually specify is 8000 ...
Started by on , 8 posts by 8 people.  
A little application logic before hand can add a CHECK CONSTRAINT in the db, ....
It would be better because it's sooner on the path to the DB, so you minimize the overload of inserting it into the db, just to find out it is too big.
Hi, I'm using Ruby 1.9 and Rails 2.3.4 with Paperclip gem to save attachments. and I followed tutorial by adding the proper migration, adding (has_attached_file :video) to the model, making the form (multipart) and adding <%= f.file_field :video %&...
Started by on , 3 posts by 3 people.  
I figured out what was the problem I had to add :video into my attr_accessible in the model so it wasn't assigning that video and wasn't throwing an error Thank you so much for this, I was having the same issue and this fixed it. .
I have a Rails app that needs to send out emails with a particular (MS Word) document attached. Where is the best place to put that document file? In general, in my Rails app, if I do File.read("myFile.doc") , what directory or directories will it look...
Started by on , 3 posts by 3 people.  
Store all that in the DB (on average they might be small enough to consider it) you don't need.
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost