Yes, you do need to have the directory and file permissions set at 666, but that would have to be at the time the file was uploaded.
Are you allowing default users to delete records?
------------------
JPD
Quote:
the $db_userid is not feasible as default user then results in an incorrect path to the images.Are you allowing default users to delete records?
------------------
JPD