similar to: file_upload ... won''t

Displaying 20 results from an estimated 4000 matches similar to: "file_upload ... won''t"

2005 Dec 14
3
image upload (apache2.0+ lighttpd)
Hello all, I use lighttpd 1.4.8 and I have a problem with image uploads. I tried file_upload plugin, but it is strangely working sometimes and refuse to work sometimes. Function in the controller is (@user is loaded in before_filter) def update_watermark @user.watermark = params[:user][:watermark] @user.save redirect_to :action => "index" end Model is
2006 Apr 25
3
limiting options in file_upload
Does anyone know if it''s possible to set constraints to the size & type of file that file_column will accept? I''d like to limit to image files of less than 2MB. If this isn''t possible with file_column, is there a graceful way of getting the controller to handle it? thanks dorian -- -- I do things for love or money
2006 Mar 28
4
1.1 won''t install!
I get this result in Terminal (10.4.latest) pb12-olivier:~ ambush$ gem install rails --include-dependencies Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' ERROR: While executing gem ... (Errno::EACCES) Permission denied - /usr/local/lib/ruby/gems/1.8/cache/activesupport-1.3.0.gem
2006 May 02
3
file_column : _temp field always nil
Hi, I''m trying to set up file_column to upload attachments for emails. My view has <td align="left"><%= file_column_field ''to_do'', ''attachment'' %></td> and the attachment_temp hidden field is generated. When I inspect tthe params on saving the form the attachment_temp param is always an empty string. Also, when I was
2006 Jan 22
12
Problems with File_column
Hi, Rails - newbie here.. I''m setting up an app and am trying to use file_column to upload a picture with an item and I''m running into several problems. (Background: I''m running Locomotive Rails under OS X 10.4.4, and using Safari) I followed the directions to add the necessary items, then found out that I had to add the item to make the form tag be a multipart
2006 Feb 16
4
file_column :: changing image with object.update
Dear all, file_column now works fine with object.save i.e., it updates my database field with the correct image file name and places the image file into the correct public folder. However, I cannot get file_column to work the same way with object.update when trying to change image. It only updates my field with the image file name. However, the new image is not copied into the correct
2006 Aug 13
5
problems with file_column plugin
1) installation is not as smooth as some other plug-ins. If you follow the instructions on http://www.kanthak.net/opensource/file_column/ it makes a directory called trunk instead of file_column. You have to manually rename it to file_column. I guess this is a minor annoyance but it gives me the feeling that things aren''t quite like other plugins. 2) I get this error: undefined
2006 Jun 01
9
Image upload
ok, im done, the plugins file_column and acts_as_attachment doesnt seems to work for me, i want a simple thing, upload images, resize it to 216px width, save its filename to a table and save the file to the /public/images directory, i have searched a lot but all the examples are too complex, im starting with rails. If someone can post a example code for the view, controller and model(if any)
2005 Dec 14
0
File upload (lighttpd + apache2_
Hello all, I use lighttpd 1.4.8 and I have a problem with image uploads. I tried file_upload plugin, but it is strangely working sometimes and refuse to work sometimes. Function in the controller is (@user is loaded in before_filter) def update_watermark @user.watermark = params[:user][:watermark] @user.save redirect_to :action => "index" end Model is
2006 Apr 27
3
LoginEngine File_column interop
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Hello all, I hope someone can help me with this issue, I have the SVN file_column and using LoginEngine/UserEngine with Rails 1.1.2. My issue is that I''m overloading the view for LoginEngine to support a file image upload as part of the user record and having a heck of a time doing so. Near the bottom of my new _edit.rhtml
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 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 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"=>"",
2005 Oct 04
3
[Q] file_column help needed
Hi all, I''m trying to use file_column to upload a picture but I''m getting the following error: "cannot convert nil into String" caused by the last line in FileColumnHelper::url_for_file_column(object_name, method) url << object.send("#{method}_relative_path") I don''t have any images uploaded for existing entries so does this not
2007 Jan 30
0
using file_column with backgrounDRb ?
Hi list, I am quite new to baclgrounDRB, so far I just tested the samples, so far it works fine, also I got it working the cronstyleway for testingpurposes. Now I have seen ppl are using bDRb for fileupload, especially with the file_column plugin. Unfortunatly there are only a few tutorials out there, well, more articles than tutorials in fact, and additionally the few I found are all
2006 Mar 23
2
newbie - form_tag with get?
I can''t create a form with method "get". The rhtml code: <%= form_tag :controller => ''teritory'', :action => ''add'', :method => ''get'' %> The generated html code: <form action="/teritory/add?method=get" method="post"> What i''m doing wrong? -- They say money can''t
2006 Jun 27
4
File Column has me stumped
I have an existing entry in my DB under the "users" table that has a column name "pic". I have a file column field when a new user signs up, and it work great. I am now trying to give existing users the ability to add or change their "pic". But, no matter what I do the entry comes up blank. Here''s what I have so far: View: <%= start_form_tag ({:action
2006 Mar 11
0
file_column value always null
Hello, I am trying to use file_column to upload images. I went through the examples and correctly have the file upload button and field working in a create form. When I save the new record the file_upload column is always null. I updated the model and everything else appears to be correct, however I assume it is some sort of configuration issue. Any guidance would by greatly appreciated.
2005 Dec 29
3
FileColumn Help
i''ve changed store_dir to :store_dir => "public/uploads/users/pictures/" that works great for uploading, but url_for_file_column is still outputting: /user_picture/image/id/name.jpg how do i make url_for_file_column output the correct url? -- Posted via http://www.ruby-forum.com/.
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