PDA

View Full Version : banner upload



ork
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

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

jmorris1161
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

renlok
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.

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

Loren
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!

renlok
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])) {

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

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

Thanks in advance for your help.

THIS HAS NOW BEEN SORTED