Displaying 1 result from an estimated 1 matches for "path_to_save_file".
2006 May 04
3
File Upload problem when file is small, under 19k(read method returns nothing)
...g is returned from the read method.
example code where "image" is the file upload form parameter, it works
fine if image is over round 19k but is it is smaller then image.read
returns nothing however the image.size and image.original_filename
return the correct information.
File.open(path_to_save_file, "wb") {|f| f.write(image.read) }
All the best
Ant
--
Ant Peacocke
www.levelsystems.net
T: + 33 (0) 8 70 46 63 37
M: + 33 (0) 6 09 81 06 00