Skip to main content

Why the preview link of private files can be viewed by unregistered users?

Because our previewer uses Google Viewer, by default no one can access private files. So, in order to allow Google Previewer access your private files, we generate a temporary token to access these files. By default, this token time is 3600 seconds.

How can I change the token live time?

 
You can go to "functions.php" file of your current theme, then insert the function below:
 
add_filter('wpfd_token_live_time', function($time){
return 900;
});

 

 

 

Note: 900 is the token live time (by second). And it is not applied to the previewed files before this function is added.

 

 

How to overcome the bandwidth limitation while downloading directly large files from a cloud server?

Normally, when downloading a file from cloud servers, it will be temporarily stored at your server then it will be deleted on your server after downloading completely. However, in some cases, users want to download files directly from cloud servers; especially large files without occupying your server bandwidth. This way could expose the direct link of files on cloud servers. The link will exist within 4 hours with Dropbox and unlimit with OneDrive. Furthermore, the bandwidth could be limited by cloud servers.

Please go these links below for more details:

https://help.dropbox.com/files-folders/share/banned-links

https://borncity.com/win/2016/06/26/onedrive-microsoft-limits-data-transfer/

So to overcome this issue, you should put the code in “wp-config.php” corresponding to your cloud servers.

- Google Drive:

define('WPFD_GOOGLE_DRIVE_DIRECT', true);

 

 

- Dropbox:

define('WPFD_DROPBOX_DIRECT', true);

 

 

- OneDrive Personal:

define('WPFD_ONEDRIVE_DIRECT', true);

 

 

- OneDrive Business:

define('WPFD_ONEDRIVE_BUSINESS_DIRECT', true);