lesterchan / wp-downloadmanager

Adds a simple download manager to your WordPress blog.
https://wordpress.org/plugins/wp-downloadmanager/
17 stars 15 forks source link

External file not work #19

Open SalvatoreNoschese opened 7 years ago

SalvatoreNoschese commented 7 years ago

Eg: try to put a mega url, url will become: https://www.laltroweb.it/download/https://mega.nz/#!*** then, no work.

Also, change url page to files instead of download, file url slug remain to download.

Also, if directory not exist in ftp, this isn't created and cause an error in error log.

Also, category url is without slash, but - indeed - this redirect to release with slash: https://www.laltroweb.it/download?dl_cat=1 > https://www.laltroweb.it/download/?dl_cat=1

Finally, if id not exist we have a die in blank page!! Imho a simple error inside download can be a more appreciated error report.

Also, i still cannot understand utility of "to" button inside add download tab page (is still empty).

... So, some little bug to fix here, and i really hope can be fixed.

SalvatoreNoschese commented 7 years ago

Edit: external file fixed provisory with htaccess redirect:

RewriteCond %{REQUEST_URI} ^/download/http(.+)$ [NC]
RewriteRule ^(.*)$ http%1? [L,R=301]

can be imperfect, but atm work as expected.