pCloud / pcloud-sdk-php

pCloud SDK for PHP
MIT License
54 stars 22 forks source link

Download expiry for getfilelink() URL #14

Closed whitsey closed 4 years ago

whitsey commented 4 years ago

Uploaded a file. Used getfilelink(fileId) to generate link Link worked fine yesterday Today I get "Your download expired. Try previous step again." How do I fix this? How to extend expiry time? The only options are:

forcedownload | int Download with Content-Type = application/octet-stream
contenttype | string Set Content-Type
maxspeed | int limit the download speed
skipfilename | int include the name of the file in the generated link
sich commented 4 years ago

Every time you need to download a file you have to call getfilelink and use the link immediately. All our clients work that way. This is bacause files are being stored on different storage servers and they could be moved.