similar to: file_column and upload_progress

Displaying 20 results from an estimated 90000 matches similar to: "file_column and upload_progress"

2006 Jan 12
5
file_column preview in multistage forms
i have a 2 step form which contains 1 file_column field. The second form is just "This is how your post will look" kind of form and the user can click Edit (to take them back to form1) or Submit. If the user clicks edit it takes them back to the first form with fields populated. I have it working with all text fields, I just dont know how to do this with file_column field (showing the
2006 Jan 13
2
file_column in session
is it possible to store a field of type file_column in the session? Rails crashes on me every time i try to do something like the following: @session[:newpost] = @params[:post] however if i assign each field of @params[:post[ except for @params[:post]["image"] i have no problems. Is there something that should be done to allow the file in the session? thanks adam
2006 Jan 09
5
file_column content type
is there a way using the file_column plugin to enforce a certain content type based on regex (i.ie, /^image/) and/or filesize (150k) ? thanks adam
2006 Jan 12
1
methods for file_column
how do i find the available methods available to my objects in file_column ? I noticed that i can do @post.image_relative_path for my @post object to retreive the relative path. What are all the other options available to my objects thru file_column ? thanks adam
2006 Jan 11
1
fiile_column persistent across different forms
is there a way to keep the file_column field in the form persistent across diffferent view templates ? In my controller (same controller for both views) i do @post = Post.new in the view i do form_step1.rhtml --------------------- <%= file_column_field "post", "image" %> <% if @post["image"] %> <%= image_tag url_for_file_column("post",
2006 Jul 13
0
file_column
Hello all, another rails newbie here. I''m working on an project to simply upload pictures with some extra information, I was able to get uploads working thanks to file_column, however, a couple things are troubling me. First of all, according to the file_column website, displaying images should go like this: <%= image_tag url_for_file_column("entry", "image")
2006 May 02
2
Mechanize and file_column
Hi all, Has anyone successfully used WWW::Mechanize with file_column? I''m trying to upload a bunch of images to a custom controller, and something''s going wrong with the parameter names. Using a noddy controller :create action that looks like this: def create render :text => params.inspect end I get this result from a manual upload from a form:
2006 Jan 11
0
File_column : how can I resize/convert/whatever an image according to form-submitted values?
Hi guys, I want to have a file upload form which would allow the user to ask for certain transformations of the image before saving it - most importantly, to resize it. Now, how can I make an instance of FileColumn enabled model process these imagemagick instructions? My model looks looks somewhat like : class Image < ActiveRecord::Base attr_accessor :resize_dimension, :resize_to
2006 Apr 11
0
upload_progress with apache
I am running Ruby 1.8.4, Rails 1.1, and apache2 with fcgid. I installed the upload_progress plugin, but it doesn''t seem to be working. In my log I see only Processing SortController#create (for 71.32.223.31 at 2006-04-11 11:29:09) [POS\ T] Session ID: 556c9a44ce6452a22bc1dbbab3ee5a2f Parameters: {"commit"=>"Upload",
2005 Dec 23
6
file_column and HABTM
I have several models that will be using file_column by way of the "Picture" class (HABTM). Right now, all pictures are stored in: public/picture/image/1/filename1.jpg public/picture/image/2/filename2.jpg Is there a way I can dynamically define the "store_dir" based on the model? For example, if I have "user", "product" and "place" models all
2007 Sep 16
0
upload_progress example
Since mrblog is now out of sync with trunk, I distilled out of it just the minimum parts for having upload progress display on file uploads. I also took the liberty of inverting the way the iframe was used: now the iframe contains the progress display, rather than being the target of the form post. This makes more sense to me, as you may wish to separate visually the progress display anyway,
2006 Aug 05
4
file_column just will not work...
Hello, I have been trying for some time to get a file to upload using the file_column plugin. My code is here: http://pastie.caboo.se/7304 But my code is not the issue. I cannot even pass the unit test that come with the file_column plugin. If I run ruby file_column_test.rb i get: 1) Error: test_store_dir_callback(FileColumnTest): TypeError: can''t convert Fixnum into String
2006 Jul 12
1
Test for file_column
hi all, has any one had experience writing a test for file_column I can write a test for testing the data in the form, but am not sure how to test against the image any tips? cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060712/08f7996a/attachment.html
2006 Jul 27
0
Separating file_column upload directory by account
I''m working on an app right now that uses http://www.kanthak.net/opensource/file_column/index.html Sebastian Kanthak''s file_column plugin for file uploads. The usual directory structure it saves to is: model/attr/id/filename For my current project, I''d like to separate uploads by account so that it''s easier to monitor an account''s resource usage.
2006 May 18
1
in_place_editor / file_column
has anyone managed to get get in_place_editor and file_column to work in tandem ? I am trying to allow someone to edit a photo in place, but not sure if this is possible. adam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/487d5fee/attachment.html
2006 Jun 01
3
file_column - blank folder created, no upload
i want to upload and resize images so i installed the file_column plugin but im having a big trouble, i have a table images with (id, name) fields where the images names/path will be stored, i get a success message(from the controller after @art_image.save) every time i try to upload but only a blank directory its created /public/image/name/tmp , without errors messages, i see a post related
2006 Dec 17
1
file_column error: StringIO Instead of Temp_File
Hi all, i am using file_column to upload 3 images from the same form, they are all different names and DOM IDs so there isn''t a problem with the multiple upload. The problem is when i try to upload a file (or 2, or 3) sometimes it works, but sometimes i get this in the log file: "bar_image"=>{"file_temp"=>"",
2007 Aug 17
1
zipping a file after upload, file_column
I''m using file_column and I''m not sure where to put code for zipping (compressing) a file. I want to upload an audio file, but compress it as a .zip file before saving. That way I can force downloads rather than having audio files load in visitor browsers. question is: Where do put code to do the zipping, so that it occurs before the file is saved? I want the database entry to
2006 Jun 20
0
file_column Trying to Create Thumbnails of Non-Image Files??
Howdy. We use the handy file_column plug-in in some of our apps. We have a model with a file field and we upload both images and non-images into this field. It is specified as follows: file_column :file_uri, :magick => {:versions => {:thumbnail => {:size => ''200x''}}} Well, it works great for images but for non-images, the save fails. The root cause is an
2006 Mar 16
0
problem with file_column storing images and other files
I have a model called ProductFiles which associates an arbitrary amount of image and documents with a product. I am using the file_column plugin to manage the upload and storage of the images, like so: class ProductFile < ActiveRecord::Base # Accepted MIME types, mime types that are not part of this list are rejected MIME_EXTENSIONS = { "image/gif" => "gif",