logo       

[feature] Support file uploads via blogapi: msg#01011

php.drupal.devel

Subject: [feature] Support file uploads via blogapi

Project: Drupal
Version: cvs
Component: blogapi.module
Category: feature requests
Priority: normal
Assigned to: walkah
Reported by: weitzman@xxxxxxxxxxxx
Updated by: walkah
Status: active

well, it does use the file api for the parts that the file api supports.
however, the file is not received via an http upload ... it is base64
encoded in the xmlrpc call -- meaning we need to create the file from a
string. this patch honours file.inc's temp dir setting to temporarily
store the file, then uses file_move() to put it in the proper location.
it will not work directly with file.inc until file.inc has something
like: file_save($dest, $data).



walkah



Previous comments:
------------------------------------------------------------------------

December 30, 2003 - 15:36 : weitzman@xxxxxxxxxxxx

Support the file upload features of metaweblog API. w.bloggar is one
good client for testing this.

------------------------------------------------------------------------

February 26, 2004 - 13:01 : walkah

Attachment: http://drupal.org/files/issues/_6drupal (1.52 KB)

This patch implements metaweblog's newMediaObject method.

------------------------------------------------------------------------

February 26, 2004 - 17:20 : Dries

This patch should use the file system functionality exported by
file.inc. Storing uploaded files to /tmp is not a practical nor a
durable solution. Take a look at how the project module manages file
uploads, or how the profile module handles avatars.

--
View: http://drupal.org/node/view/4878
Edit: http://drupal.org/project/comments/add/4878





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise