I need to manipulate parts of a form in Drupal 6 based on the contents of a file field. For example:
- if the form shows and there is a file, do x
- if the form opens without a file, do y
- if a file is uploaded, do z (as soon as the upload is finished)
- if a file upload fails, or the uploaded file is deleted, do xyz (whether ahah is used or not)
Any ideas on how I get this done?
thanks