• Hi there,

    I’m using the 2 filters (as3cf_upload_acl & as3cf_upload_acl_sizes) to set all uploaded content as private in order to make all media load with pre-signed URLs. This is all working fine but I’ve now noticed that when I insert media into an editor, it does so with an expiring URL. These aren’t being replaced on page load and so once it’s expired, the image stops loading.

    Is there a way around this?

    Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor ianmjones

    (@ianmjones)

    WP Offload Media usually makes sure to show you S3 URLs while editing, but then saves the local version of that URL into the database content. That way it can be rewritten to the S3 version with newly generated signed URL when the page is rendered for visitors.

    Sounds like something is stopping WP Offload Media from rewriting those S3 URLs back to local URLs when the content is saved.

    You might want to set WP into debug mode and see if there are any errors when trying to save content. It’s also possible that another plugin is interfering with the URL rewrite.

    Thread Starter Richard

    (@richardj87)

    Hi Ian,

    Thanks for taking the time to get back to me. You’re right, on further investigation it does work in a regular editor, it seems that there’s an issue with the editor’s created with Advanced Custom Fields.

    I’ll see if I can find out what’s happening!

    Thread Starter Richard

    (@richardj87)

    Just to confirm it does appear to be an ACF related issue. To replicate:

    1. Using ACF Pro 5.7.7 add a custom field group to the ‘Page’ post type with a WYSIWYG editor
    2. With the private filters enabled, upload an image and insert it into both the regular post editor and then the second ACF editor
    3. Save the page

    When you reload the edit screen, the main editor get’s a refreshed version of the image URL but the ACF editor does not.

    I’m using v2.0 of WP Offload Media Lite.

    Let me know if you need any other info from me and thanks once again.

    Plugin Contributor ianmjones

    (@ianmjones)

    You’re not by chance using the Image Crop addon for ACF?

    If so, WP Offload Media (Pro) has built in integration for that.

    https://deliciousbrains.com/wp-offload-media/doc/acf-image-crop-integration/

    Thread Starter Richard

    (@richardj87)

    I’m not I’m afraid, just ACF Pro out of the box. Have you been unable to reproduce the issue?

    I’ll try and make some time to do a fresh WP, Offload and ACF installation and see if it’s still doing it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Private ACL inserting expiring URLs into editor’ is closed to new replies.