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

jmstacey’s picture

Issue tags: +gsoc, +gsoc2009, +gsoc2009-jmstacey

Uploading 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

Jody Lynn’s picture

Status: Active » Fixed

This is no longer an issue.

Status: Fixed » Closed (fixed)
Issue tags: -gsoc, -gsoc2009, -gsoc2009-jmstacey

Automatically closed -- issue fixed for 2 weeks with no activity.