Reply To: URL expiration

Gary Michael
Support Manager

Hi Andy,

By default, S3 URLs are “pre-signed.” This is what limits the access duration to a specific amount of time. It can be disabled, but it’s a little easier to increase the time. You can do so using the following snippet:

add_filter( 'syncs3_merge_tag_presigned_link_time', 'my_syncs3_merge_tag_presigned_link_time', 10, 5 );
function my_syncs3_merge_tag_presigned_link_time( $time, $url, $entry, $field_id, $form ) {
	return '+1 week';

That said, Amazon limits a pre-signed URL to a maximum of one week. If you need it to be longer than that, you’ll have to make the files public so they can be accessed without expiring URLs. SyncS3 also includes a few other filter you’ll have to use in that case.

Your Cart
Your cart is currently empty.
Open Cart