Share
Attachment_fu sanitizes the filenames on uploads to remove any funky character (not 0-9 a-z A-Z, underscore or a period). This is accomplished by the sanitize_filename private method in attachment_fu.rb file
1
2
3
4
5
6
7
8
9
10
def sanitize_filename(filename)
returning filename.strip do |name|
# NOTE: File.basename doesn’t work right with Windows paths on Unix
# get [...]
Share
Mongrel Upload Progress plugin is an awesome thing if you want to show upload progress bars. I have been using the plugin for about a year now to track progress of song uploads. However recently I wanted to track progress of reuploads and therefore started looking into tracking more than one action. Turns out that [...]