Some of the webforms we use on our site include uploaded documents/images. In the submission email we include a link to the uploaded file/image so the recipient can login, click the link and access the file.
Until recently (last couple of weeks) this worked fine. Now however the reference to the link no longer includes the real sid value but instead the placeholder text '_sid_'. As a result the file can't be accessed by clicking the link in the email since the link is incorrect.
This is what we used to have (and would like):
domain/system/files/webform/test_form/797/document.pdf
This is what we see now:
domain/system/files/webform/test_form/_sid_/document.pdf
The files are successfully stored in the a folder for the corresponding form with a sid value and the files can be also be accessed through the submissions page on the webform as expected.
Create a simple form with a file upload
Edit the File field and under Advanced set the Submission display is set to Link or URL
Create an email handler to send the form to you on submission and include:
[webform_submission:values]
[webform_submission:sid]
Send a Test email
The resulting email will include the correct sid value for the [webform_submission:sid] but the URL of the file will have the placeholder '_sid_' instead of the real value.
Force webform submission attachments to be loaded from the DB.
Fixed
5.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.