similar to: Halt file upload if maximum size is reached. Is that possible?

Displaying 20 results from an estimated 6000 matches similar to: "Halt file upload if maximum size is reached. Is that possible?"

2007 Jun 29
1
attachment_fu validation error
I have this class: class Logo < ActiveRecord::Base has_one :something has_attachment :content_type => :image, :storage => :db_file, :max_size => 500.kilobytes :thumbnails => {:web => ''150x100'', :pdf => ''150x100''}, :processor =>
2007 Dec 02
0
attachment_fu doesn't generate thumbnails on windows
Hi, I''m having trouble with attachment_fu on windows not generating any thumbnails on the fly. I started out trying to incorporate this into my app without success then tried implementing Mike Clarke''s tutorial (http://www.clarkware.com/cgi/blosxom/2007/02/24) and got the same problem. I have resolved some gotchas I found in the "attachment_fu on Windows" thread
2013 Jun 28
1
[HELP PLEASE!] attachment_fu and aws-s3
Hi, Im developing an image upload using pothoven-attachment_fu (3.2.8) and aws-s3 (0.6.3). I want to store my files in Amazon S3. I follow all the instructions using attachment_fu and s3 my model has_attachment :content_type => :image, :storage => :s3, :max_size => 1.megabyte, :thumbnails => { :thumb =>
2007 Mar 28
3
attachment_fu Not Resizing
Hello, Recently attachment_fu stopped resizing images for me. I''m puzzled because before today it was resizing them and I don''t know what''s changed. Here''s my code: class Product < ActiveRecord::Base has_attachment :content_type => :image, :storage => :file_system, :max_size => 18.megabytes,
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
I just installed attachment_fu and for some reason, it seems to be looking in the wrong location for my images. I have a Product model that belongs to a photo model. the photo model has the attachment_fu installed and configured like so: class Photo < ActiveRecord::Base has_attachment :content_type => :image, #Allow standard image formats :path_prefix
2008 Sep 25
1
Will acts_as_paranoid work with attachment_fu?
I''ve got a problem in that users are deleting a paranoid model through the application, including dependents. Some of these dependents are paranoid too, but not the attachments. (I''m using DB file storage.) I need to be able to un-delete these things and I''m now wondering if acts_as_paranoid will work with models that use attachment_fu? If so, in what model to I add the
2007 Apr 27
3
attachment_fu content_type problem
Hi all.... Admittedly I''m new to Rails and trying to find my way but I''m having an issue with uploading documents with attachment_fu. I have a form where I''m uploading multiple attachments (using AJAX to add file_filed_tags). That seems to work pretty well. The problem is I can''t seem to get the content_type to work as I would expect. For example, if I use
2007 Sep 18
2
Making attachment_fu polymorphic
I am working on a small model mixin called attachment_kung to make attachment_fu polymorphic, so you no longer need a different table and Model class for every associated attachment (Productimage, Ad_doc, etc). All you really need is one model and table to handel all your attachments - in some cases, anyway. I have the code working, but have run into one small hitch that I can''t seem to
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
I've added the options --min-age=SECONDS and --max-age=SECONDS to allow rsync to skip files based on how recently they were modified. Setting --min-age=30 (for example) would cause rsync to skip files that had been modified within the last 30 seconds. Setting --max-age=7776000 would cause rsync to skip files that had been modified more than 90 days ago (7776000 == 60*60*24*90). I realize
2007 Apr 08
13
attachment_fu thumbnail not created
I followed the instructions on Mike Clark''s weblog and everything works perfectly except the thumbnail column in my DB is alwas NULL. I''m using S3 as my storage system. Anyone else having this issue with thumbnails? has_attachment :content_type => :image, :storage => :s3, :max_size => 500.kilobytes, :resize_to =>
2010 Apr 24
2
problem using attachment_fu with S3
Hi, My S3 bucket is located in the US I have attachment_fu working when using file system storage I have sw-swf upload plugin working with my S3 account but I can not get attachment_fu to work with S3 storage. the error I get is : AWS::S3::RequestTimeout in Upload filesController#create Your socket connection to the server was not read from or written to within the timeout period. Idle
2007 Mar 19
0
[900] branches/wxruby2/wxwidgets_282/swig/classes: Initial commit of AUI core classes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2006 Dec 02
1
How to Set Max File Size for Upload?
I used to use <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> in my PHP days, but it doesn''t seem to work with Rails. I always thought MAX_FILE_SIZE was an HTML spec, but upon a little research, it looks like it is PHP specific. Can anyone confirm? Anyway, I want to prohibit a user from uploading large files. For instance, the user has the
2007 Sep 25
2
attachment_fu default path
Hi all. I''ve done a little google search, but doesn''t find anything (with "attachment_fu default path") that could help me in changing attachment_fu''s default path. My model: [audio.rb] has_attachment :max_size => 20.megabytes has_attachment :content_type => "audio/mpeg" has_attachment :storage => :file_system
2008 Jul 24
1
Automating a ruby script
I have been working on an application that takes a text file and parses information from it. I have the script in my script folder, and can run it if I enter ''script/parser file.txt''. I am using the ''attachment_fu'' plug-in to upload the text file to my public folder (admittedly not the best place to keep raw data, but I will work that out in time). Once I
2007 Aug 22
8
How to spec an attachment_fu model
First off, I''m not trying to spec attachment_fu, I know it''s been tested. But, I added some code to that model that I do need to test. Basically, I need to somehow fulfill the "uploaded_data" property so I can actually run my tests(otherwise they fail because of validations). The "uploaded_data" field is what would grab the multipart data from form. Here
2009 Apr 21
3
attachment_fu giving problem on production
Hello friends, I have configured attachment_f. It''s working fine on Local(development) system but giving problem on production. Basically on production the attachment_fu is not able to generate thumbnail image it saving the original size image. Below is the configuration. has_attachment :content_type => :image, :storage => :file_system, :max_size
2005 May 20
1
How to specify sample sizes?
Hi, quoting the vorbis doc "Vorbis frames may be one of two PCM sample sizes specified during codec setup. In Vorbis I, legal frame sizes are powers of two from 64 to 8192 samples. Aside from coupling, Vorbis handles channels as independent vectors and these frame sizes are in samples per channel." I want to explicitly specify the sample size, so, how can I do it? Can I set min_size
2007 Apr 21
3
attachment_fu thumbnails
howdy! I had the problem that attachment_fu didn''t make a thumbnail, but everything else worked. I read this post http://www.ruby-forum.com/topic/104213 and added a parent_id column. now I get the following error when I trie to add a photo: undefined method `find_or_initialize_by_thumbnail_and_parent_id'' for Photo:Class my code is: class Photo < ActiveRecord::Base
2007 May 05
0
acts_as_attachment - no thumbnails?
the full-size pics upload OK, but no thumbs or resizing. There are no errors or exceptions that I can see, just not getting any thumbnails. The DB column ''thumbnail'' is always NULL rmagick-1.15.6 is freshly installed. I have the :thumbnails stuff setup per http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing using a model like this: class EventPic