Displaying 20 results from an estimated 100000 matches similar to: "paperclip plugin"
2011 Jun 03
0
valums ajax file upload + paperclip in Rails 2.x Options
Hello all,
I am trying to setup ajax file upload + ajax display in Rails 2.0.2
for project specific purposes. I am using valums ajax file upload
plugin(https://github.com/valums/file-uploader). Using this plugin, I
have been able to upload these files working in my javascript and I
am
able to pass them as params.
I have found a blog in which they have shown how to combine this
plugin with
2011 Mar 08
1
Bulk file upload in rails through paperclip
Hi all,
I have a rails application running and in my application am
uploading some very large file (SAY 2GB) ,as of now am doing one file at
time ,but i would like to do bulk file upload in my appliaction ,I came
to know about Paperclip as one of plug-in for bulk file upload....
But is it possible to have bulk upload of very
large file (SAY 2GB) through
2012 Jul 11
0
Paperclip duplicates uploaded images
Hi,
I''m using rails3 with paperclip to upload multiple images as in
http://www.emersonlackey.com/article/paperclip-with-rails-3
The problem is, every image is duplicated upon create/update, that is,
saved twice to the db (and afterwards displayed twice in the view as a
result)
In other pages, and even in the same page as well, I also have a single
upload file, which works fine.
As
2012 Jan 25
0
Paperclip preserve files ?
Hi,
I am using paperclip to upload files. The problem I am facing is,
based on my object property I need to preserve my file. Means my object
should be deleted from db but the file need to be restored.
I am using the option :preserve_files => true.
If I keep the above option in model it will be access to all the
objects of the model. I need to restore only for limited objects.
2010 Feb 27
2
Paperclip upload fails sometimes
Hello,
My application is a rails-postgresql application which uses paperclip
("ImageMagick-6.5.4-10-Q16-windows-dll.exe" installed on WinXP).
The application''s image uploading feature works consistently right on
my development PC, however it is inconsistent on a different server PC
(used for deployment).
There are certain observations below.
a) For the first time the file
2011 Mar 17
1
Paperclip validates_attachment_content_type not working?
Hi,
I''m using the paperclip gem to upload photos.
I''m trying to use the content-type validator in my photo-model but
it''s not working.
Photo upload with just the file-size validator works.
What could this be?
Here''s my code:
http://pastebin.com/1nGfgmtN
Thanks,
Mathew
--
You received this message because you are subscribed to the Google Groups "Ruby on
2012 Mar 20
4
Multiple Paperclip Images on Index
Hi,
I am working on a project that is using Paperclip to upload multiple
images to an Asset model. my Post model has_many Assets. As per this
tutorial/screencast...
https://github.com/Emerson/Multiple-File-Uploads-with-Paperclip-and-Rails-3/blob/master/app/views/posts/show.html.erb">
http://www.emersonlackey.com/article/paperclip-with-rails-3>
This all works fine and I can
2014 Feb 18
0
How to Test Multimodel Paperclip attachments?
I'm using Rspec and FactoryGirl to create specs for multimodel paperclip
attachments. From searching other questions, it seems like a single
image attachment is more common.
Car.rb
class Car < ActiveRecord::Base
has_many :uploads, dependent: :destroy
validates :uploads, presence: { message: 'You must upload at least
one image' }
2011 Aug 13
1
Paperclip - could not find generator.
Hello there,
I installed plugin "paperclip" for working with images, but after
running a command
--
rails generate paperclip user avatar
I am getting error
--
Could not find generator paperclip.
If I will try run a command
--
bundle show paperclip
So I will get
--
/Library/Ruby/Gems/1.8/gems/paperclip-2.3.0
In Gemfile I have
--
gem "paperclip", "~> 2.3"
I
2010 Nov 02
0
Can't use paperclip plugins
development env:
Ubuntu 9.04
ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
rails -v
Rails 3.0.0
gem -v
1.3.7
Here what I did:
rails new testpaperclip -d mysql
cd testpaperclip
rake db:create
rails g scaffold user name:string address:string
rake db:migrate
== CreateUsers: migrating
====================================================
-- create_table(:users)
->
2011 Aug 07
2
PROBLEM WITH PAPERCLIP
hello,
i am trying to upload a image file ...using paperclip in rails 3
i did as follows
1. In gemfile => included gem paperclip
2.In config/environments /development.rb => Paperclip.options[:command_path]
= "/usr/bin/" (convert path)
3.created a controller *picusers *and defined => def create
@picuser = Picuser.create(params[:picuser])
end
4.created a model *picuser
2010 Aug 21
3
Cleanly handling sub-generatede files with Paperclip
Hi,
Let''s say I upload a pdf file. Imagemagick extracts all pages out of it
and stores the png images on the hard-drive. How to easily handle all
these generated files with Paperclip?
Has anyone done that before? Thanks for your advice
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2014 Apr 28
0
upload multiple images with paperclip in rails 4?
Hello, I'm learning rails and creating a small project,
Someone could tell me how can I upload multiple images with paperclip in
rails 4?
Thank you very much, I hope someone can help me.
Greetings.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an
2010 Aug 06
4
Paperclip not finding imagemagick on prod, works on dev
Hi,
I am using paperclip to attach documents to my models. it works
perfectly on my dev machine, but on the server I get a
CommandNotFoundError.
On my server if I ./script/console I can run imagemagick through
system("convert") and it works, so why can''t paperclip find it?
Thanks for your ideas
PS: the paperclip google group isn''t getting much answers so I am
2013 Sep 04
2
Speed up image processing of Paperclip in Acceptance Tests
Hi All,
I have a question here: How to Speed up image processing of Paperclip in
Acceptance Tests
When running capybara feature specs I can see lots of Slow factory notices
which are populated byfactory_girl. These Slow factory things heavy slow
down the feature specs, I think, even feature specs are intrinsic slow
specs. Then I had some inspect and found out most of the Slow factory was
2010 Aug 09
5
Paperclip - Amazon S3 - https
I am able to use Paperclip to save files to Amazon''s S3 storage. Once
saved, the files are available using a URL associated with the bucket
and filename.
I have not been able to find a good tutorial which clearly explains
how to save a file to S3 (using Paperclip) whereby it can only be
retrieved using https, and only for a limited time period (which I
understand is a function of S3).
2010 Aug 22
0
Paperclip - possible to modify file and load file content as string?
Wanted to see if anyone knows of a way - or the preferred way - to do these
three tasks with Paperclip:
1) Access the content of an uploaded file before save. I did find that the
following works before save, but is there a clearer way to do this:
self.uploaded_file.queued_for_write[:original].open.read
2) Access the content of a file after save while my AR model instance is
still alive and/or
2011 Sep 25
0
paperclip content_type error
Hi all,
I am using rails 3.1 with paperclip. when I try to upload a picture of
type ''jpeg''. picture_content_type value not a image/jpeg. It is storing
some Xadsfdsfdasfc value. I dont get the problem. can you help me.
thanks,
Aashish
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Sep 01
1
Faking Paperclip has_attached_file with Factory girl?
Hello!
I wonder if it''s possible to simulate Paperclip''s has_attached_file
with Factory Girl and then test it with Rspec. I don''t get it to work.
My factories.rb file looks like this:
Factory.define :user do |user|
user.name "Anders"
user.email "user-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
user.password
2011 Feb 15
0
Question on Paperclip paths/urls
Note that if I use the default Paperclip :path (i.e. not setting this
attribute and files going to public/system), everything is fine. This
question is to do with setting an alternative path.
I have a model using paperclip for a file with a custom path:
has_attached_file :tu_raw_bill_csv,
:path =>