Reset Password
Check your e-mail for further instructions.
Reset
Name
savepubthumb
Auth
yes
Description
Create a thumbnail of a public link file and save it in the current user's filesystem
Same as savethumb, but works on public file identified by code (and fileid if link is to a folder)
The code could be obtained from:
URL
https://api.pcloud.com/savepubthumb
Required
Parameter | Description |
code | string either 'code' or 'shortcode' |
fileid | int id of the file for thumb, if the link is to folder |
size | string WIDTHxHEIGHT |
topath | string filepath where to save the thumb |
tofolderid | int folder id of the folder where to save the thumb |
toname | string filename to save the thumb |
Optional
Parameter | Description |
crop | int If set, then the thumb will be cropped |
type | string If set to png, then the thumb will be in png format |
noover | int If set, then will rise error on overwriting |
Code | Description |
1000 | Log in required. |
1014 | Thumb can not be created from this file type. |
1015 | Please provide valid thumb size. Width and height must be divisible either by 4 or 5 and must be between 16 and 2048 (1024 for height). |
1016 | No full topath or toname/tofolderid provided. |
1029 | Please provide 'fileid'. |
2000 | Log in failed. |
2001 | Invalid file/folder name. |
2002 | A component of parent directory does not exist. |
2003 | Access denied. You do not have permissions to preform this operation. |
2004 | File or folder alredy exists. |
2008 | User is over quota. |
2009 | File not found. |
3001 | Could not create thumb from the given file. |
4000 | Too many login tries from this IP address. |
5000 | Internal error. Try again later. |
7001 | Invalid link 'code'. |
7002 | This link is deleted by the owner. |
7004 | This link has expired. |
7005 | This link has reached its traffic limit. |
7006 | This link has reached maximum downloads. |