• Resolved ziseshiya

    (@ziseshiya)


    Word/excel/PPT even PDF cannot be previewed. Suspected that the design of the file path is incompatible with the Google/Microsoft API

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Anssi Laitila

    (@anssilaitila)

    For some reason the links in the default format don’t work:
    https://www.bjfengnong.com/shared-files/2694/excel测试.xlsx

    But like you wrote earlier, this format works:
    https://www.bjfengnong.com/wp-content/uploads/shared-files/excel测试.xlsx

    The first url “/shared-files/2694/” is formatted that way, because 2694 is the id of the file, and when the file is opened using that url, the request can be parsed and for example the file load counter and other metadata can be updated at the same time. When the file is opened using that url format “/wp-content/uploads/shared-files/”, those metadata fields won’t be updated at the same time.

    I think if we could find out why the first url doesn’t work and fix that issue, the preview will automatically start working. I’ll look into this and get back to you as soon as possible.

    Thread Starter ziseshiya

    (@ziseshiya)

    OK, I see. Moreover, the first URL does not expose the real path of the file, which may be more secure. Looking forward to the updated version, thank you~

    Plugin Author Anssi Laitila

    (@anssilaitila)

    I have now updated the plugin and there are some improvements regarding opening the files. Could you update the plugin on your site and see if the file links and preview works now?

    If they don’t, you could check a new option “WP Engine compatibility mode” and see if it helps.

    If it still doesn’t work, I’ll have to investigate further.

    Thread Starter ziseshiya

    (@ziseshiya)

    Thank you. I have updated the plug-in to 1.6.22 and uploaded the file again, but no matter whether “WP engine compatibility mode” is checked or not, the file still cannot be previewed. Currently “WP engine compatibility mode” is checked.(https://www.bjfengnong.com/mytestpage/)

    Plugin Author Anssi Laitila

    (@anssilaitila)

    I just realized that you run the site on a Windows/IIS server… this might be the reason to this behaviour. The plugin is not currently 100% compatible with Windows-based servers I’m afraid.

    Would it be possible to you to install your WP site on a Linux server? I believe then the plugin would work normally and to my understanding Windows/IIS isn’t the best platform to run WordPress in general. I also understand that this might be too much to ask.

    Anyway, could you email me at firstname.lastname at tammersoft.com (replace with anssi.laitila), so we can discuss how to continue with this process. Of course it would be best for the plugin to work on IIS also, but I don’t currenly have access to such server and I can’t perform any necessary tests.

    Thread Starter ziseshiya

    (@ziseshiya)

    You are right, I am using Windows+IIS server…… I have sent you an email ([email protected]).have you received it?

    Plugin Author Anssi Laitila

    (@anssilaitila)

    Yes, great!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘preview’ is closed to new replies.