1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Aaron Patterson
90f0cdc906 always transcode the file to utf-8
people may be passing filenames to the constructor that are not utf-8,
but they will assome that calling `original_filename` returns utf-8
(because that's what it used to do).
2014-07-16 11:35:27 -07:00
Rafael Mendonça França
d1c5e4b28b Change the method description 2014-04-17 14:49:02 -03:00
Tim Linquist
e601728dce Provide interface for accessing underlying IO object
In some cases users may need to work with/manipulate more of the
Tempfile api than provided by Upload. Allow users to get at the
underlying io via the common to_io method of IO/IO-like objects
2014-04-15 11:05:08 -07:00
Xavier Noria
133d42bc0f fixes the suite for uploaded files 2012-09-23 00:50:30 +02:00
Sergio Gil Pérez de la Manga
e9ba548baf Accept parameters in methods delegated to tempfile 2012-09-22 22:37:00 +02:00
Sergio Gil Pérez de la Manga
dab0859741 Delegate ActionDispatch::Http::UploadedFile#close to tempfile 2012-09-20 11:57:38 +02:00
Jens Fahnenbruck
96b72efc00 adds delegetion for eof? to AD::Http::UploadedFile
if you want to read the file you may need to ask if there is something
to read from
2012-03-27 22:53:33 +02:00
Carlos Antonio da Silva
8d5c742df4 Refactor AD::UploadedFile, and raise sooner if tempfile is not present 2012-03-06 18:34:20 -03:00
Sergey Nartimov
5ca86ac8f9 deprecate String#encoding_aware? and remove its usage 2011-12-24 15:57:54 +03:00
Lukáš Konarovský
c0d82ba030 Use assert_equal instead of assert in uploaded file test. 2011-06-15 03:09:27 -07:00
Damien Mathieu
383fd143bf all requests are utf-8. Don't use the external encoding. 2011-06-14 17:01:33 +02:00
Damien Mathieu
383d56b5ee encode the uploaded file's name in the default external encoding - Closes #869 2011-06-14 14:34:30 +02:00
Aaron Patterson
c52e2cf4b3 delegating path and open to internal tempfile 2010-11-18 10:10:25 -08:00
Aaron Patterson
1217339616 only forwarding enough methods to work. People should grab the delegate tempfile if they really need to do hard work 2010-10-04 19:28:40 -07:00
Aaron Patterson
3370ad0b1e making sure respond_to? works properly 2010-10-04 17:11:50 -07:00
Aaron Patterson
8a97470210 raising an argument error if tempfile is not provided 2010-10-04 17:08:25 -07:00
Aaron Patterson
2a3022db7f delegate to the @tempfile instance variable 2010-10-04 16:56:45 -07:00
Aaron Patterson
f9734f2b0f adding tests for uploaded file 2010-10-04 16:30:16 -07:00