Posted by aaron on March 19, 2009 at 8:02pm
Jump to:
| Project: | Media |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | gsoc, gsoc2009, gsoc2009-jmstacey |
Issue Summary
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
#1
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
#2
This is no longer an issue.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.