codeminders / imageshackapi

Automatically exported from code.google.com/p/imageshackapi
0 stars 0 forks source link

yFrog's API no longer support private upload? #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the sample code projected in obj-c. Everything works fine except 
I wanted to upload as private. So I added the following two lines

[postBody appendData:[@"Content-Disposition: form-data; name=\"public\"\r\n
\r\n" dataUsingEncoding:NSUTF8StringEncoding]];
        [postBody appendData:[@'no" 
dataUsingEncoding:NSUTF8StringEncoding]];

The API returned "wrong username or password" after the change. Is it a 
problem from the server side?

Original issue reported on code.google.com by garywkf...@gmail.com on 5 Oct 2009 at 6:21

GoogleCodeExporter commented 9 years ago
please make sure that you are adding boundary line as well, something like:

[postBody appendData:[[NSString stringWithFormat:@"\r\n--%@\r\n",  
boundary] dataUsingEncoding:NSUTF8StringEncoding]];

Original comment by lyolik1...@gmail.com on 6 Oct 2009 at 9:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for the help! I corrected my boundary mistakes and everything works but 
the 
picture does not seem to be private. What exactly does public/private do? 
Because as 
far as I can tell, anyone can access it anyway?

Original comment by garywkf...@gmail.com on 7 Oct 2009 at 1:58

GoogleCodeExporter commented 9 years ago
garywkfung,

The private setting will ensure your image does not show on imageshack's search 
and
on your public profile. Anyone with be able to access the image with the url
regardless of the private setting.

Nick

Original comment by npettas@gmail.com on 7 Oct 2009 at 4:32

GoogleCodeExporter commented 9 years ago
Thanks what is the limit for uploading images for a single username/password?

Original comment by garywkf...@gmail.com on 8 Oct 2009 at 4:27