Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Similar to #407612: Process existing FID's, we need to process uploaded files. In this case, we should probably rely on (and finish the port of) http://drupal.org/project/hook_file.
We would simply create a new file object, passing everything through the hooks, and then pass it on through the same mechanism. Easy as pie!
Comments
Comment #1
jmstacey CreditAttribution: jmstacey commentedUploading a file right now will result in an HTTP Error 0. This is caused by the drupal_json() call. drupal_to_js() may be a viable alternative.
See: http://drupal.org/node/331941 and http://drupal.org/node/399676
Other helpful AHAH references: http://katbailey.net/blog/dual-aspect-drupal-forms-and-what-means-your-a... and http://katbailey.net/blog/ahah-drupal-may-it-one-day-live-its-acronym
Comment #2
Jody LynnThis is no longer an issue.