title: custom module in Drupal 6.26
body: <p>I am working in Drupal 6.26. I am developing a custom module, in which i am i want to upload file in node creation page. I want an option to upload image, like there should be file upload component and a upload button. So when admin select a file and click on submit button file has to get saved in a folder and need to save the path in database. After upload the image thumbnail should appear with remove button. When the admin clicks on remove button the image thumbnail should disappear and file upload component has to displayed with upload button. On save of the node, the image path has to map with node. This is similar to cck file upload option. Please help me to do this. Thanks.</p>