Issue with Google Drive download link & encoding
-
Hello,
I am looking to offer a number of free downloads on my WP WooCommerce store and want to use Simple Download Monitor to manage these behind a WP password protected page. I want to host the free download files on Google Drive and manage them there.
I have hit an issue with the plugin, as it is not correctly translating the button link https://website.com/?smd_process_download=1&download_id=1234 to the downloadable file URL when using a Google Drive File Direct Download Link. When the link of https://drive.google.com/uc?export=download&id=1234567890 is added as the Download URL, when the translation happens from the SDM side, i get a “Bad Request Error 404” as the Google Drive URL is incorrectly translated as:-
https:/ /drive.google.com/uc?export=download& #038; id=1234567890
(Please note: I have added a space before and after the #038; to display the URL in text form, otherwise you do not see it).The URL translation has added the & encoding #038; to the URL and it fails. Manually remove this #038; encoding in the browser address bar and the download works fine.
- The topic ‘Issue with Google Drive download link & encoding’ is closed to new replies.