Displaying 1 result from an estimated 1 matches for "error_no_permiss".
2006 Apr 07
1
Upload corrupts images. Any ideas why?
...@filename = @params[''NewFile''].original_filename
@filename.gsub!(/[^A-Za-z0-9._]/, '''')
File.open(@server_path + @filename, "w") { |f|
f.write(@params[''NewFile''].read) }
rescue
@error_number = ERROR_NO_PERMISSIONS
end
***********
Any ideas?
Sergei Serdyuk
Red Leaf Software LLC
http://www.redleafsoft.com
--
Posted via http://www.ruby-forum.com/.