View Full Version : Uploading files and functions bug

12-26-2007, 01:48 AM
The bug which is racking my brain is as follows.

[example code]


function resize(file_name,width){
//resizes image

the bug i get with the code above is that when i dont run the function and the page is loaded, all 3 images are uploaded (but of course not resized.)

and when i run the code with the function the code doesnt upload and copy the files before the function runs giving me the error that the source image for the resizing is incorrect. I have run various tests and found that its nothing to do with the source file name and wondered if anyone has ever come across this and more importantly a solution or a work around.

Thanks to anyone who can help.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum