Has anyone had success using the WD URL file path to access files on a webpage using Word Press. I keep getting the following error message when someone clicks on the link to a file on my WD personal cloud.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<error_code>401</error_code>
<http_status_code>401</http_status_code>
<error_id/>
<error_message>Request is not allowed</error_message>
It works perfectly if I put the WD url in the address line of the browser but not when that url is embedded as a link on a webpage.
What URL path are you using? How was it generated?
Are you using the "link’ generated by either the WD My Cloud Desktop, the WD mobile apps (for Android or iOS), or MyCloud.com web portal that you use to email or give someone else?
when placed in the address bar of a browser it works fine. Its only when the address is a hyperlink on a wordpress website page that the problem arises.
It would appear its a Wordpress problem. Here is a simple way to test, create your own webpage with your URL as a link to test yourself. For example create an HTML page with the following text and open it in a web browser, then click the link.
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>example link: <a href="https://apia.wd2go.com/api/1.0/rest/device_redirect?device_user_id=12927256&device_uri=%2Fapi%2F1.0%2Frest%2Ffile_contents%2FischAdmin%2FIncorporation%2FIllawarra%2520South%2520Coast%2520Hockey%2520Incorporated%2520Constitution.pdf%3Fdevice_user_id%3D12927256%26request_auth_code%3D42fdab267226b2f60c15a60b7cb635c92bffe43553d6aba5dcb25c5f0c51cf1a">click
here</a></p>
</body>
</html>
Could be the problem is the length of the link to the file on the My Cloud. You could try using a site that shortens the link like TinyURL: http://tinyurl.com/
I’m not sure about the rendering of the ‘special characters’ in that link (e.g. %2F etc). These may be required because of the use of spaces in the filename.
Try it with a file with no spaces in the filename…