If a node submit form has required fields, the upload creates a validation error when all field requirements have not already been met.

I think this is quite irritating and probably confusing for a site user. It leads me to want to place the imagefield at the bottom of a form on the basis one tends to complete a form top-down.

Is there a workaround for this?

Straying into feature request: the inline upload (with AJAX progressbar) of the upload module, which doesn't require a page refresh?

Comments

bobdalob’s picture

DMV info:
1. 5.x-1.4
2. 5.x-1.1
3. files 755
4. public
5. Label: Images, 640x640, Image path: images, rest are unchecked
6/7/8. As explained above

dotidentity’s picture

Anybody?

bobdalob’s picture

I think the proposed implemetation of ajax uploading is the answer (http://drupal.org/node/144475). I have tried this - and it is great - subject I think to ironing out a couple of minor issues.

Not only does it rule out the need for my initial request but it is the logical step for this module and as far as I have heard it is to be implemented.

quicksketch’s picture

Yes I agree, as the AJAX uploading will solve the issue in 95% of cases. While it *is* possible to skip more advanced validation by other fields, the 'required' flag is not possible to skip and still validate any other fields.

dopry’s picture

Status: Active » Closed (fixed)

ajax upload is in 2.x. You can form_alter anything else you may need for your use case or write patches that you think may solve the problem.