| Latest discussions |
|---|
|
new
I added my first application "LiquidAlbums"
Updated 2 days ago |
|
new
Problems with authorize method
Updated 4 days ago 1 reply |
|
Liperbox: Wordpress - Ipernity - Plugin to integrate Ipernity
Updated 6 weeks ago 1 reply |
|
Lightroom export plugin?
Updated 5 months ago 13 replies |
|
Wordpress widget
Updated 5 months ago 2 replies |
|
doc.set problems?
Updated 6 months ago 2 replies |
|
How to get the full list of my doc ids?
Updated 7 months ago 3 replies |
|
Uploadingtool for linux for flickr and ipernity in cooperation
Updated 8 months ago 3 replies |
|
(beginner) work on a Python API
Updated 9 months ago |
|
.NET API kit
Updated 9 months ago 2 replies |
| ... view all the discussions |
|
howto use "file.upload"?posted by matjesPosted on Monday December 22, 2008 at 13:54. 309 visits. ( permalink ) |
You must be logged on to post a reply. Sign in now?
Latest comments
–
Subscribe to the comment feed for this topic.
The file will be sent just like any other parameters, but omitted in the signature calculation. All parameters are sent using HTTP POST.
matjes says:
I tried the following python code snippet:
However I get the message that 'API Key is missing'.
Have you any useful advises? Many thanks in advance!
Matjes
All the parameters must be sent using POST - and the signature is calculed without the file.
The POST must be with enctype=multipart/form-data (it's similar to multipart mime).
We're using CURL to do the job, maybe check the PHP API class for an example - or check www.vivtek.com/rfc1867.html
ِِِ says:
query = urllib.urlencode(params)
body = urllib.urlencode({ "file" : File.read() })
I hope that this will help, and as Christophe said; take a look at the PHP KIT it work well
regards