Displaying 4 results from an estimated 4 matches for "img_nam".
Did you mean:
imgnam
2006 May 02
2
Mechanize and file_column
...p%5D"=>""}
It looks to my untutored eye like the query keys are getting
double-quoted on upload. Anyone else seen this, or anything like it?
The code driving mechanize looks like this:
img = @form.file_uploads.find{|f| f.name == ''snapshot[screenshot]''}
img_name = time + ''.png''
img.file_data = File.read(File.join(dirname, img_name))
img.file_name = img_name
img.mime_type = ''image/png''
@form.fields.find{|f| f.name == ''snapshot[processes]''}.value = ''''
response = @agent.su...
2006 Jul 30
1
FileColumn - Validate Before Saving
file_column is great -- but I need a way to run through the validations
(ie: validates_file_format_of) before saving. That is, when a user first
uploads an image it is displayed in the view but not ''saved'' until they
click the ''Save'' button on the form. I want to display an error
message/disable the ''Save'' button if the file they just
2006 Mar 15
2
Route for any image?
I want to create a route for any image. This is in order to create an email
report explaining what the missing image is. I could create a route for
each directory that currently has images in it but wanted something more
general like:
map.connect "/**/*.gif", :controller => ''image_handler'', :action =>
''handle_image''
Which doesn''t
2006 Aug 17
3
file_column do download from URL
Is there a simple way of forcing file_column to download file from given
(ex. in form) url instead of uploading it manualy?
I know:
http://blog.caboo.se/articles/2006/01/09/file_column-magick-and-versions
require ''open-uri''
Attachment.find_first.filename = open(url)
if not working as expected... what is interesting is that:
>> @a =