Re: Failing to upload file to Scribd using Scribd Pear Package
| From: | Daniel O'Connor | Date: | Tue, 04 Aug 2009 22:43:42 +0000 |
| Subject: | Re: Failing to upload file to Scribd using Scribd Pear Package | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29977@lists.php.net to get a copy of this message | ||
2009/8/5 Itzik Yatom <itzik@itzikyatom.com>
>
> Hello,
>
>
>
> According to Pear Web site recommendation, I am sending to this mail
> address and not Rich Schumacher direct mail
>
>
> I have just installed the Scribd service pear package written by Rich
> Schumacher and I have problems with the Services_Scribd_Docs.upload method:
>
> I am getting the following error message from Scribd server:
>
> "Invalid file parameter - you attempted to pass a string literal as a file.
> You need to call a multi-part POST, passing the file as file data instead of
> a simple parameter in..."
>
>
Without seeing your code, we can't help you much.
However, it sounds like you are $_POST ing in a "string" rather than
multipart/form-data
To understand what's happening on the scribd side; have a read of:
http://us2.php.net/manual/en/features.file-upload.post-method.php