search for: upload_imag

Displaying 7 results from an estimated 7 matches for "upload_imag".

Did you mean: upload_image
2006 Nov 20
7
Acts as attachement
Hi guys Question about acts as attachment still getting the following error undefined method `content_type'' I have set everything up according to the following page however i am still have trouble http://weblog.techno-weenie.net/articles/acts_as_attachment One thing, I have wanted to add this to an existing model in my system. I have not used the... script/generate
2008 Oct 10
17
authenticity_token sent, still InvalidAuthenticityToken
...with the other. The controller which does not work has just one action which performs a file upload. In this controller, if I don''t put "skip_before_filter :verify_authenticity_token" at the top, the file upload doesn''t work. I have pasted the upload action below: def upload_image directory = "public" + params[ :temp_Image_Location ].to_s pRandomFileName = params[ :random_File_Name ].to_s pFileData = params[ :Filedata ] vFilePath = File.join( directory, pRandomFileName ) succeeded = File.open( vFilePath, "wb" ) { |vBuffer| vBuffer.w...
2006 May 31
4
acts_as_attachment , someone using it?
Hi, i just found the acts_as_attachment plugin for image upload, seems sogood but i cant find any docs about it, if someone here using it can give some references or working examples about the plugin that will be excellent. So what you wanna rails today? -- Posted via http://www.ruby-forum.com/.
2007 Jun 19
5
Problems translating should_render from 0.8.2 to 1.0.5
...endar'', :date => Date.today.strftime("%B-%d-%Y")<br>&nbsp; end<br><br>here''s another expectation I don''t know how to translate:<br>controller.should_render({:controller=>:content_item, :layout=>"frame", :action=>:upload_image})<br><br>Does anybody have any ideas about how to get these things working in the new RSpec?<br><br>Thanks for your help,<br>-Jake Scruggs<br></font>
2007 Apr 17
0
rflickr: invalid auth token when uploading
...l the API, I receive an error stating "ERR: Invalid auth token (98)". The extended error is: XMLRPC::FaultException (Invalid auth token): /vendor/plugins/rflickr-2006.02.01/lib/flickr/upload.rb:70:in `error'' /vendor/plugins/rflickr-2006.02.01/lib/flickr/upload.rb:179:in `upload_image'' Any insight into this error will be greatly appreciated. Here is the action that gets executed on an upload request: def upload incoming_file = params[''flickr_image''] content_type = incoming_file.content_type.chomp msg_out = nil responds_to_parent...
2006 Mar 29
1
Posting multiple files - how to set up params correctly
...ee more than one image in the "document" hash. What am I doing wrong here? Can one use the file_field helper to generate multiple file selection elements successfully? ==================================================== Here is my form: <%= form_tag( { :action => ''upload_images'' }, { :multipart => ''true'' } )%> <TABLE> <% for image in images do %> <TR> <TD> <%= image.path.split(''/'').last[0..39] %>: <% if ((! image.path.nil?) && (image.path.length &...
2006 Apr 01
0
Many file fields w/same name don''t show up as params array
..." hash. My expectation was that this I could get params to have a document element that then had one value which would be a hash of image values. What am I doing wrong here? ==================================================== Here is my form: <%= form_tag( { :action => ''upload_images'' }, { :multipart => ''true'' } )%> <TABLE> <% for image in images do %> <TR> <TD> <%= image.path.split(''/'').last[0..39] %>: <% if ((! image.path.nil?) && (image.path.length &...