Thanks for the response guys,
Dr Byte: I tried puting the .htaccess file in the includes/uploads folder but as soon as a .htaccess file is put in there, it causes an internal server error inside the iFrame. It does not matter what content is in the .htaccess file as I stripped it back, testing a line at a time until it was empty. So, even an emty .htaccess file causes the following internal server error:
PHP Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@silkblooms.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
As for the custom code inside index.php I was hoping to limit file size in another way as my PHP skills aren't where I'd like them to be yet.
CoolCarPartsOnline: The mod comes with 'built in' file size limit, but all it does is generate a php.ini and place it in the upload directory. It should really hard code the index.php file, but it doesn't do that. I've been in contact with the author and he may review the php if he can find time, but if I can find another approach in the meantime then that would be great. Perhaps you could tell me which mod you used in the past, or better still tell me how to limit the upload file size by adding a condition to the header?