Extension as TXT

See all posts See thread Reply

Re: Extension as TXT new!
by colin, 11 years, 1 month ago
Paste here the log produced by the class. It is probably a MIME type detection issue.Reply
Re: Extension as TXT new!
by Jefferson, 11 years, 1 month ago
I couldn't get the log. I've tried to use different dir's (../images/upload, /srv/www/domain.com/images/upload), tryied to set as "false" mime_magick, mime_check, nothing helped.Reply
Re: Extension as TXT new!
by Jefferson, 11 years, 1 month ago
Well, solve by changing from $file_src_name_ext = 'txt'; to $file_src_name_ext = 'jpg';Reply
Re: Extension as TXT
by ciko, 8 years, 10 months ago
I'm having the same problem

Only work if i change:

if ((((substr($this->file_src_mime, 0, 5) == 'text/' && $this->file_src_mime != 'text/rtf') || strpos($this->file_src_mime, 'javascript') !== false) && (substr($file_src_name, -4) != '.txt'))

to:

if ((((substr($this->file_src_mime, 0, 5) == 'text/' && $this->file_src_mime != 'text/rtf') || strpos($this->file_src_mime, 'javascript') !== false) && (substr($file_src_name, -4) != '.jpg'))Reply