Welcome Guest, Not a member yet? Register   Sign In
Problem uploading PDF Files
#13

[eluser]Spicer[/eluser]
Not sure if this is a bug or not. But is solved my problem.

It looks like in Upload.php the following code is used to test if the file is an image. I don't have great knowledge of how image files work but I was having this return FALSE on a .pdf and a .php file. After doing a print_r(getimagesize($this->file_temp)); I determine that both these files were being read as images in getimagesize. I just commented out that chunk of code and kept going.

Code:
One Line 566ish in Upload.php

/*
if (in_array($val, $image_types))
            {
                if (getimagesize($this->file_temp) === FALSE)
                {
                    return FALSE;
                }
            }
*/


Messages In This Thread
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:21 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:33 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:41 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:56 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:59 AM
Problem uploading PDF Files - by El Forum - 04-10-2008, 10:41 PM
Problem uploading PDF Files - by El Forum - 05-13-2008, 11:00 AM
Problem uploading PDF Files - by El Forum - 07-15-2008, 09:53 AM
Problem uploading PDF Files - by El Forum - 08-14-2008, 10:59 PM
Problem uploading PDF Files - by El Forum - 08-21-2008, 11:29 AM
Problem uploading PDF Files - by El Forum - 04-21-2009, 08:17 AM
Problem uploading PDF Files - by El Forum - 08-11-2009, 10:40 AM
Problem uploading PDF Files - by El Forum - 10-10-2009, 08:28 PM
Problem uploading PDF Files - by El Forum - 10-10-2009, 08:33 PM
Problem uploading PDF Files - by El Forum - 10-12-2009, 01:19 PM
Problem uploading PDF Files - by El Forum - 10-12-2009, 02:08 PM
Problem uploading PDF Files - by El Forum - 11-13-2009, 05:07 PM
Problem uploading PDF Files - by El Forum - 12-09-2009, 03:32 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 06:03 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 07:07 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 07:36 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 07:55 AM
Problem uploading PDF Files - by El Forum - 02-02-2010, 03:15 PM
Problem uploading PDF Files - by El Forum - 02-02-2010, 04:32 PM
Problem uploading PDF Files - by El Forum - 04-25-2010, 04:19 AM
Problem uploading PDF Files - by El Forum - 04-25-2010, 06:42 AM
Problem uploading PDF Files - by El Forum - 04-28-2010, 09:55 AM
Problem uploading PDF Files - by El Forum - 07-27-2010, 09:28 AM
Problem uploading PDF Files - by El Forum - 01-24-2011, 03:38 AM
Problem uploading PDF Files - by El Forum - 01-24-2011, 10:34 AM
Problem uploading PDF Files - by El Forum - 07-20-2011, 02:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB