Reply To: There has been a critical error on your website.
October 6, 2020 at 10:15 pm Reply
Support Manager
Glad everything is working now.
Currently, the download link in the email (using the {s3urls}
merge tag) only links to the file – it doesn’t actually download the file. This is due to cross origin restrictions (different domains).
However, we can add the ability to customize the file’s meta data that is sent to S3. This will allow for adding a Content-Disposition setting that will automatically download the file instead of displaying it in the browser. We’ll get that out in the next release. In the meantime, you can set your site up to work with it when the update is released by adding the following snippet:
add_filter( 'syncs3_putobject_args', 'gm_syncs3_putobject_args', 10, 4 ); function gm_syncs3_putobject_args( $args, $file, $entry, $form_id ) { $args['ContentDisposition'] = 'attachment;'; return $args; }