I’m utilizing Drupal Type API to add profile picture for consumer. I discovered two file add widgets in FORM API:
'#sort' => 'managed_file'&'#sort' => 'file'
managed_file requires first deciding on Drupal Development Company file, then importing Drupal Development Company file after which submitting Drupal Development Company kind to vary Drupal Development Company picture
file requires first deciding on Drupal Development Company file after which submitting Drupal Development Company kind to vary Drupal Development Company picture
What I need to do is simply when you choose Drupal Development Company picture file and click on okay in Drupal Development Company file browser, Drupal Development Company kind ought to get submitted and picture ought to be modified.
Is it doable utilizing FORM API? If not please advocate an alternate resolution.