March 8, 200917 yr I have created a PHP upload script, however I have a bit of an issue with it. The script checks to see if the checkbox 'remote' is ticked. If it is, it uploads the image file and stores the external URL as a field in the database. If the checkbox isn't checked it will upload the file and the image. Or it should. I appear to have a problem I can't sort. I have some file validation to check if the file is a .rar .zip or .jpg If the file IS NOT a .jpg it WILL NOT upload any files, but it will store the information in the database instead of giving me an error. The upload (checkbox unticked) will only work with .jpg's as the file when it should check to see the defined files allowed.. Here is the file: http://www.webdesignerforum.co.uk/index.ph...ost&id=3184
March 11, 200917 yr There is no code in that script to manage the upload... on line 41 you include this file: includes/uploadfile.php, maybe you should show us that one.
Create an account or sign in to comment