Displaying 20 results from an estimated 1900 matches similar to: "Image uploading - upload_column"
2007 May 28
1
upload_column problems on post after validation error
Hi to all the crew !
I''ve a little (big ?) problem.
I''m using upload_column plugin, it works very well but it throws an
exception when I try to repost the form after a validation error.
Here some details:
Model: (hostel.rb)
HOSTEL_PHOTO_DIR = Proc.new {|inst, attr| "hostel/#{inst.id}"}
HOSTEL_PHOTO_THUMB = "100x100"
HOSTEL_PHOTO_NORMAL =
2008 Aug 26
1
upload_column NoMethodError
Hi all,
I''m using uploadcolumn plugin for file uploading. Followed the README file.
Put "upload_column :src_file" in my model file as instructed, and i got this
NoMethodError for the upload_column. This is the full trace:
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1667:in
`method_missing''
app/models/speech.rb:2
2007 Dec 27
1
File generated with upload_column plugin
I using the upload_column plugin.
In the model i insert this:
image_column :image,:versions => { :thumb =>
''c30x30'',:medium=>''c62x62'', :large => ''600x600'' }
when i upload an image this genera 4 images:
3 images specified in :version
1 image original
I don''t want the original image.
Is possible set it??
Thanks
--
Posted
2007 Aug 20
0
Raising errors in plugin-files or UploadColumn Validation
Hi all!
I have a problem with the validation of uploaded images, or, to be more
specific, with raising errors from plug-in files. I am using
UploadColumn to upload pictures. Problem is that it won''t raise errors
when upload e.g. txt-files. It will say "Upload succesfull", the
time-stamp is updated only the picture hasn''t changed.
I looked through the code of the
2009 May 11
7
Upload file with url parameter
I want to upload file using get method.
for example, "http://www.mydomain.com/upload?file=c:\test.exe" upload
my local file to the remote server.
I found one useful link about file uploading here(http://
www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm).
Even I''ve changed some code in order to fit my rails version, it
worked well. But the problem is I have use
2012 Mar 04
4
How to retrieve a FileBlob from 'ActionDispatch::Http::UploadedFile' instance?
I have used ''remotipart'' gem to upload files asynchronously to server side.
The instance passed to the server side is of ''UploadedFile'' .
The Rails API mentions all the methods( like read(), open() ) and
attributes for the class, however I am not sure how to retrieve the File
and store it on the database. The documentation hardly says anything.
Googling
2010 Mar 13
1
Testing file upload (Sinatra, RSpec, Rack-Test)
Hi.
I have a simple application and I want to add a file upload
functionality. How can I write a spec?
Here''s my try.
# directory structure
app:
- controller.rb
- controller.spec.rb
- files: []
- fixtures: [test_file.png]
# controller.spec.rb
require ''rack/test''
require ''controller''
module MyHelpers
def app
Sinatra::Application
end
end
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
I have a simple form , with a file field
= form_for (Clip.new), :html => {:multipart => true} , :remote =>
true , do |f|
= f.hidden_field :user_id, {:value => current_user.id}
= f.text_field :name
= f.text_area :description
= f.file_field :image
= f.submit I18n.t(:add)
generating the html code
<form accept-charset="UTF-8"
2006 Jan 05
4
testing file uploads
Hi all,
I was wondering about the class used when rails receives file uploads.
Sometimes it appears to be a File, and other times it is a StringIO.
Also it has methods such as original_filename that don''t appear to
belong to either of these classes. I ask because I''m trying to work out
how to test my fil upload related models and controllers.
Is there some standardised way of
2010 Aug 13
5
"uninitialized constant" Error for CalendarHelpper
After installing calendar_helper-0.2.3 gem, application using
CalendarHelper works fine. Then I tried to test using rake command which
gave me the following error.
Why does these messages appear evenif the application owrks fine.
------------------------------ Error Messags
--------------------------------------
/usr/local/jruby-1.5.1/bin/jruby -I"lib:test"
2011 Jul 14
0
Converting an Uploaded File to a string while maintaining binary data
Ok so it boils down to this I uploaded a picture into a
ActionDispatch::Http::UploadedFile and want to convert it to a string
before I send it off google storage. When I do this it complains about
having null characters.
I had the same problem when I was experimenting with files from my hard
drive with the same function. I was able to do it with:
File.open( ''filename'',
2011 Aug 31
5
3.1rc8 - posting files in a test no longer works
A previously working test, that posted a file object no longer works
in the latest 3.1. The test looks like this:
params[:media][:new_attachment] = File.open("#{Rails.root}/test/data/
less_than_100.png")
post :create, params
In the controller, I obviously expect params[:media][:new_attachment]
to be a File object - and it used to be. Now it looks like #inspect
has been called on the
2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
I''m currently new to Rails and Ruby and I''m trying to learn from my
mistakes, this time I''m trying to upload 2 files from a form for later
processing, however, after I hit the "Submit" button. I keep getting this
error:
TypeError in UploadFilesController#create
app/controllers/upload_files_controller.rb:28:in `new''
2011 Mar 11
12
A file-upload suddenly seems to be nil
Hi there,
I posted this issue
<https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68k>at
the carrierwave-group, but I''m beginning to think this rather is a
rails-issue than a problem with carrierwave. The problem''s this:
I have 2 models, ''article'' and ''upload''. article has_many :uploads. In my
article_controller i
2011 May 17
2
Can't dump File ... when uploading files
I am getting this error on the redirect_to command ...
I am using Rails 3 w Paperclip to upload files ( but I tried also
CarrierWave .. same error)
I tried to change the session store from cookie-based to database ..
same error
I tried to delete the params content ...
I don''t know what to try next .. any clue ?
thanks
erwin
--
You received this message because you are subscribed to
2013 Jun 22
4
ActiveRecord::Base.transaction - SystemStackError - stack level too deep:
Im having an issue that seems to only happen when trying to use a
transaction. Ive used transactions many times in the past and Im at a loss
as to why im getting the stack level too deep problem.
SystemStackError - stack level too deep:
actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:70:in `''
I have a StackOveflow with more detail -
2007 Dec 22
2
multiple file upload
Hi,
I want to do a multiple file upload with Ruby. I want to let my users
upload pictures on my website to their account. I''m looking for
something with a nice interface. I was wondering if you knew of any
plugins/gems i can use
THanks :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Mar 22
0
Should to_io be added to ActionDispatch::Http::UploadedFile?
In rest-client/rest-client#144<https://github.com/rest-client/rest-client/issues/144#issuecomment-14876580> we''re
trying to handle objects that behave like IO. Some have suggested that
respond_to?(:read) is a poor test of this and have suggested using
IO.try_covert(obj) instead. My counter example for this is
ActionDispatch::Http::UploadedFile. I''m wondering if there
2004 Oct 19
1
largosh printing patch for Samba 3.0.7
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For anyone interested in testing some printing fixes:
I've just uplaoded a moderate sized patch for Samba 3.0.7
that addresses the following bugs:
https://bugzilla.samba.org/show_bug.cgi?id=1519
https://bugzilla.samba.org/show_bug.cgi?id=1679
Both fixes have been checked in for incusion in
the next 3.0.8 preview release.
The patch for 3.0.7
2006 Aug 15
0
filenames mangled on upload
I''m having problems with filenames being mangled when uploaded -
usually truncated either upto or after some problematic character.
Here''s an example:
Filename in filesystem: s+o~1@#%^&*()_-=[]{};:''".txt
uploadedfile#original_filename: s+o~1@#%^&*()_-=[]{}
Is this a rails/cgi.rb issue or a browser one? I note that gmail''s
"attach file"