Hi,
Please, check if the file seur-downloader-XXXXXXX.php exist (/wp-contet/seur-downloader-XXXXXXX.php) and if is it possible, edit your question and edit the file name and the password (it is for security reasons).
Thread Starter
sccom
(@sccom)
Hi José,
thanks a lot for your answer.
The seur-downloader file doesn’t exist, and it seems it is not created when activating the plugin. When exactly is this file created?
Reviewed permissiones and tried deactivating and activating several times but no seur-downloader file ever created.
Thanks!
Ok,
You will have to create the file manually.
Manually create the php file with the name that appears in the download link.
Inside this file, put the following code.
<?php
$file = $_GET["label"];
$name = $_GET["label_name"];
$password = $_GET["pass"];
$file_type = $_GET["file_type"];
if ( $file_type === "pdf" ){
$headercontent = "application/pdf";
} else {
$headercontent = "text/plain";
}
if( $password === "YOUR-PASSWORD" ) {
if ( file_exists( $file ) ) {
header("Content-Disposition: attachment; filename=" . $name );
header("Content-type: " . $headercontent );
header("Expires: 0");
header("Cache-Control: must-revalidate");
header("Pragma: public");
header("Content-Length: " . filesize( $file ) . "");
readfile( $file );
exit;
}
} else {
exit;
}
Replace YOUR-PASSWORD with the password that appears in the download link.
Also check that there is a directory called «seur_uploads_xxxxxxx» inside uploads, and that inside this directory, there are two directories called «labels» and «manifests».
-
This reply was modified 7 years, 6 months ago by
Jose Conti.
Thread Starter
sccom
(@sccom)
Hi againg José,
already resolved.
It seems this plugin need write permissions in wp-content directory. Pls inforn about it in the installation instructions.
Additionaly, it seems it needs write permissions not only for wp-content directory but also for some subdrectories bcs only applying write permssions for the web server user at wp-content directory level it is not sufficient.
Anyway, thanks a lot for this great plugin.
Best regards,