Displaying 20 results from an estimated 2000 matches similar to: "attachment_fu and S3 -- cannot download file correctly"
2009 Jul 24
1
Attachment_fu - watermark tmp file before saved to S3
Hi there,
I''d like to use RMagick to watermark an image in the tmp directory
before Attachment_fu saves it to Amazon S3.
I took a look at the callbacks available in attachment_fu. There''s an
''after_attachment_saved'' method but this would be too late, and a
''before_thumbnail_saved'' but this is no good because it''s for
thumbnails.
I
2007 Apr 08
13
attachment_fu thumbnail not created
I followed the instructions on Mike Clark''s weblog and everything
works perfectly except the thumbnail column in my DB is alwas NULL.
I''m using S3 as my storage system. Anyone else having this issue with
thumbnails?
has_attachment :content_type => :image,
:storage => :s3,
:max_size => 500.kilobytes,
:resize_to =>
2007 Aug 22
8
How to spec an attachment_fu model
First off, I''m not trying to spec attachment_fu, I know it''s been tested.
But, I added some code to that model that I do need to test. Basically,
I need to somehow fulfill the "uploaded_data" property so I can actually
run my tests(otherwise they fail because of validations). The
"uploaded_data" field is what would grab the multipart data from form.
Here
2010 Apr 03
0
Change from attachment_fu db BLOB to Paperclip S3
Hi:
I have moved from using attachment_fu with files stored in the DB to
Paperclip using S3. The trick now is to migrate the files from the DB
to S3.
I have tried a few methods like:
SThreeFile.create(:file => AttachmentFuFile.first.data)
and
@attachment = AttachmentFuFile.first
SThreeFile.create(:file => ActionController::Streaming.send_data
@attachment.data, :filename =>
2007 Apr 18
3
nil.symbolize_keys -- error with attachment_fu
I''ve spent at least 2 hours on this one problem. On my local machine
in my controller I have this:
def new
@page_title = "New User"
@user = User.new
@photo = Photo.new
end
All is good.
Now, on the remote server I get an error when accessing the ''new''
view. If I remove @photo = Photo.new from the controller then the
error goes away. This same error
2007 Jun 27
5
How to make attachment_fu generate RESTFUL URL
hi folks:
I follow this article:http://clarkware.com/cgi/blosxom/2007/02/24
all goes well except the public_filename ,it return something like
"photos/0000/0001/test.jpg" ,not the expected RESTFUL URL LIKE
''photos/1/test.jpg'',any suggestion?
My Env is Rails 1.2.3 on Ruby 1.8.6 with attachment_fu from http
://svn.techno-weenie.net/projects/plugins/attachment_fu/ by now
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
I just installed attachment_fu and for some reason, it seems to be
looking in the wrong location for my images.
I have a Product model that belongs to a photo model. the photo model
has the attachment_fu installed and configured like so:
class Photo < ActiveRecord::Base
has_attachment :content_type => :image, #Allow
standard image formats
:path_prefix
2007 Sep 18
2
Making attachment_fu polymorphic
I am working on a small model mixin called attachment_kung to make
attachment_fu polymorphic, so you no longer need a different table and
Model class for every associated attachment (Productimage, Ad_doc,
etc). All you really need is one model and table to handel all your
attachments - in some cases, anyway. I have the code working, but have
run into one small hitch that I can''t seem to
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All,
I''m trying to use a form to upload a photo that I will save using
attachment_fu. I''m very new to Facebookr so I apologize if this is covered
somewhere, but I''m kind of stumped.
Here''s what I''m doing now:
<% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id =>
params[:id] }, :html => {
2007 Sep 03
0
Attachment_fu won't upload images to S3 on Windows XP?
I''ve been slugging through Google posts on why attachment_fu doesn''t
want to upload the entire image file to S3 on a Windows XP machine and
fine no conclusions as to what I should do?
Here is a link with many suggestions. I''ve tried all of them and none
work for me. http://www.ruby-forum.com/topic/99870
I try .png, .jpeg and .gif and they all simply put a ghost file up
2007 Dec 09
5
Browserized Styles Plugin
Browserized Styles provides a dead simple way to create browser-
specific CSS code for use in a Rails application. All you need to do
is create a .css file targeted to a browser by appending an underscore
and identifier to the end.
=== Installation ===
script/plugin install http://svn.intridea.com/svn/public/browserized_styles
=== Example ===
Let''s say I have some complex CSS code
2010 Apr 24
2
problem using attachment_fu with S3
Hi,
My S3 bucket is located in the US
I have attachment_fu working when using file system storage
I have sw-swf upload plugin working with my S3 account
but I can not get attachment_fu to work with S3 storage.
the error I get is :
AWS::S3::RequestTimeout in Upload filesController#create
Your socket connection to the server was not read from or written to
within the timeout period. Idle
2013 Jun 28
1
[HELP PLEASE!] attachment_fu and aws-s3
Hi,
Im developing an image upload using pothoven-attachment_fu (3.2.8)
and aws-s3 (0.6.3). I want to store my files in Amazon S3.
I follow all the instructions using attachment_fu and s3
my model
has_attachment :content_type => :image,
:storage => :s3,
:max_size => 1.megabyte,
:thumbnails => {
:thumb =>
2008 Oct 08
11
Using image_tag and send_data
I am using image_tag to load an image that I''ve saved to the database
(using attachment_fu if you''re curious but that''s probably not
relevant here):
VIEW
<%= image_tag ''/photo/get_image/5'' %>
CONTROLLER
def get_image
@photo=Photo.find(params[:id])
send_data(DbFile.find(@photo.db_file_id).data,
:type =>
2008 Oct 14
0
Attachment_fu, db_file and Windows
I''m having trouble serving images which I have saved as db_files with
attachment_fu. I use this code to serve the images:
Controller --
class PhotoController < ApplicationController
def image
@photo=Photo.find(params[:id])
send_data(DbFile.find(@photo.db_file_id).data,
:type => @photo.content_type,
:filename =>
2007 Oct 24
4
RAILS_ROOT
Hey,
I''m using the attachment_fu plugin to upload images on the file system.
To retrieve them I''m using:
image = "/home/rajeev/Desktop/logo/logo/public#{icon.public_filename}"
which is the same as:
"/home/rajeev/Desktop/logo/logo/public/icons/0000/0005/green_nature_on_white.jpg"
Have can i do this in a shorter way by using RAILS_ROOT? I have tried
this
2009 Apr 03
1
Survey Package with Binary Data (no Standard Errors reported)
Hi,
I'm trying to get standard errors for some of the variables in my data
frame. One of the questions on my survey is whether faculty coordinate
across curriculum to include Arts Education as subject matter. All the
responses are coded in zeros and ones obviously. For some of the other
variables I have a 2 for those that responded with "Don't Know".
I'm getting NA for
2005 Dec 30
6
Rails in High School Curriculum?
Hi folks,
I''m working with a local high school in the Portland, OR area on the
subject of computer science curriculum. We are thinking of introducing
a class in web development and I think Rails would be a perfect vehicle.
I''ve done some searching on the web but haven''t found any suggestion of
HS curriculum for Rails. Any pointers or suggestions?
Thanks,
---
2008 Nov 11
1
attachment_fu, aws-s3 and backgroundrb
Hi,
I''m using attachment_fu to store files on amazon s3. A background job is currently performing the upload and I''m having a strange issue where the very first file uploaded/created (attachment_fu uploads when creating the object) does not get uploaded. The db information is all all good. The model and attachment model associated with it are saved to the db, but the file is
2007 Apr 27
3
attachment_fu content_type problem
Hi all....
Admittedly I''m new to Rails and trying to find my way but I''m having
an issue with uploading documents with attachment_fu.
I have a form where I''m uploading multiple attachments (using AJAX to
add file_filed_tags). That seems to work pretty well. The problem is
I can''t seem to get the content_type to work as I would expect. For
example, if I use