• Resolved dripstone

    (@dripstone)


    I installed version V1.1.1 yesterday. Now the plugin no longer works for me.

    The following error occurs:
    The specified URL https://www.googleapis.com/drive/v3/files/xxxxxxxxxxxxxxxxx?alt=media&key=xxxxxxxxxxxxxxxxxxxxxxxxx responds with the http status 403.

    When I re-import the V1.1.0 files, the plugin works again. I use direct links to MP3 files in Google Drive. With version V1.1.0, only the direct links with API key worked. With the direct links without API the error http-status 303 appears.

    The files imported with version V1.1.0 can also be accessed with version V1.1.1. Only new files can no longer be imported into the media library.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author threadi

    (@threadi)

    Thanks for your hint. The reason for the problem is the ampersand in the URL, which was not translated correctly on the server when the URL was saved in wp-admin (it does not happend by using WP CLI). I have corrected this for the next release. This should come at the end of the week.

    Please note that in your case you are revealing your Google Drive API key by uploading these URLs. You should save such files locally in WordPress by uploading them and not leave them externally. Then there is no risk. At least for images, you can set this in the plugin under Settings > External files in Media Library > Images Settings > Mode for Image handling.

    Thread Starter dripstone

    (@dripstone)

    I would like to use the normal Google direct links (without API). Unfortunately, this does not work because the specified URL responds with the http-status 303. The normal Google direct links have the following structure:
    https://drive.google.com/uc?export=download&id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Can you also integrate this?

    Plugin Author threadi

    (@threadi)

    The URL you mentioned responds with an HTTP status 303 as this is also just a redirect. The plugin does not include any files that generate a redirect. Incidentally, Google Drive also forwards a different URL here that you could use. It has this scheme:

    https://drive.usercontent.google.com/download?id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&export=download

    where the x’s must be replaced by the file ID. This works for me without any problems (possibly only after the fix I made in my development environment – so try it after the update).

    Plugin Author threadi

    (@threadi)

    The update has been published. Should now also work better with these URLs.

    Thread Starter dripstone

    (@dripstone)

    With the link scheme you suggested, the MP3 files can be linked to the media library. However, it does not work to play this element of the media library with an audio player. So far this only works with the API link.

    Plugin Author threadi

    (@threadi)

    Unfortunately, this does not work because Google Drive prevents you from integrating your own files via CORS. Unfortunately, this cannot be avoided unless you download the file and integrate it the normal way into the project.

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

The topic ‘Problem with v1.1.1’ is closed to new replies.