View Full Version : banner upload

16-11-2008, 10:49 PM
i keep getting this error when trying to upload a banner

Wrong file type. Allowed formats: GIF, JPG, PNG, SWF

'i've tried to upload an jpg and a gif banner

17-11-2008, 02:17 PM
did you set the right permissions for the folder where it will be uploaded?

19-11-2008, 07:17 PM
I get the same error. Permissions are fine, I have searched for a while trying to find the page with the error but to no avail. I will keep trying, any help would be help :D

19-11-2008, 08:10 PM
Yeah ive found the problem with this. Urm i cant actually remember what i did to fix it but im going to upload the next version in the testing section soon just just use that.

24-11-2008, 03:56 PM
yes.. permitions are OK. 777

24-11-2008, 05:19 PM
did you set the right permissions for the folder where it will be uploaded?

Hi, I also got this problem, would you please tell me which folder should be change the permissions? Thanks!

24-11-2008, 07:19 PM
OK it has nothing to do with permissions heres the fix or i think this is the fix
find the line

$INFO = getimagesize($_FILES['bannerfile']['tmp_name']);
and the line below it should look something like

if(($INFO[2] < 0 && $INFO[2] > 4) || empty($INFO[2]) || empty($INFO[4])) {
change this line to

if(($INFO[2] < 0 && $INFO[2] > 4) || empty($INFO[2])) {

26-11-2008, 04:11 PM
Problem fixed, Thanks :D

28-08-2010, 09:23 AM
I am having the very same problem. Which file is it I need to amend?

Thanks in advance for your help.


05-08-2014, 06:37 AM
It has not been sorted on the latest version and the code within has been changed so the FIX above is no longer applicable on 1.1.1 It has nothing to do with file extension as have tried uppercase and lowercase and directory is writeable.
If I delete the user and do the banner over again it appears to load but is not displaying. If I try to load a replacement banner it comes up with the error.