wp-hypothesis icon indicating copy to clipboard operation
wp-hypothesis copied to clipboard

handle PDFs hosted via WordPress on other file storage systems

Open xolotl opened this issue 7 years ago • 1 comments

When WordPress is configured to host its Media Library in a different environment than the local file system (eg, AWS S3), this plugin doesn't launch the Hypothesis client with PDFs stored in such a "foreign" Media Library using via.hypothes.is. This may have to do with cross-domain issues.

To recreate:

  • Use a WP instance configured to store its Media Library in another place (eg, an AWS S3 plugin like https://deliciousbrains.com/wp-offload-s3/).
  • Upload a PDF to the Media Library and verify it is stored in an alternate location (eg, AWS S3).
  • Navigate to the PDF location and verify that it launches without via.hypothes.is.
  • You may be able to test the issue by forcing the PDF to be stored locally again and launch it to see if it then launches with via.hypothes.is.

xolotl avatar Oct 19 '17 01:10 xolotl

There are a couple of workarounds:

  • If the WP setup does allow specific files to be hosted locally as exceptions, then that should work.
  • When making a link to an externally hosted PDF, one can manually prefix via.hypothes.is in the link.

xolotl avatar Oct 19 '17 03:10 xolotl