You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently upgraded from Freeform 3 to 4, along with upgrading Craft CMS from version 3 to 4. Our setup includes several file systems configured without public URLs for security reasons. When using the upload field with a standard, publicly accessible file system, everything functions as expected. However, when we use a file system without a public URL, the form fails to submit and generates an error - file_get_contents(test/file.pdf): Failed to open stream: No such file or directory.
Although the file is successfully uploaded to the correct location, the form will not submit.
Errors and Stack Trace (if available)
No response
How can we reproduce this?
In Craft's filesystem settings, toggle the "Files in this filesystem have public URLs" to off for a filesystem.
In the form builder, choose this filesystem as the asset source for a file upload field.
When the form has loaded on the front end, choose a file to upload and submit the form.
Freeform Edition
Pro
Freeform Version
4.1.23
Craft Version
Craft Pro 4.13.5
When did this issue start?
After upgrading from older Freeform version
Previous Freeform Version
3.x
The text was updated successfully, but these errors were encountered:
I tested this on my end and I can't seem to duplicate the issue. I'm curious, are you 100% sure the path is correct for the Asset/Filesystem? And how is your email notification template configured? 🙂
Hi @kjmartens, the file system looks to be set up correctly as the file does upload in the background, however it does fail validation and will not submit (this happens when the field is set to required and when not). As this folder sits outside of the web folder, I have a path set up in DDEV (e.g. in the SNV file I have this variable: UPLOADS_PATH = /var/www/html/locked).
When I tested it with a folder inside the web/assets directory, it also failed to submit though the file was uploaded to the correct location. The error was: deleteFile() is not implemented.
The email notification template is very basic, it really only loops through the submission fields. I have tried this without the notification and also without any other fields except for the file upload field.
What happened?
We recently upgraded from Freeform 3 to 4, along with upgrading Craft CMS from version 3 to 4. Our setup includes several file systems configured without public URLs for security reasons. When using the upload field with a standard, publicly accessible file system, everything functions as expected. However, when we use a file system without a public URL, the form fails to submit and generates an error - file_get_contents(test/file.pdf): Failed to open stream: No such file or directory.
Although the file is successfully uploaded to the correct location, the form will not submit.
Errors and Stack Trace (if available)
No response
How can we reproduce this?
Freeform Edition
Pro
Freeform Version
4.1.23
Craft Version
Craft Pro 4.13.5
When did this issue start?
After upgrading from older Freeform version
Previous Freeform Version
3.x
The text was updated successfully, but these errors were encountered: