Asset field type in form throwing error #11823
Replies: 4 comments
-
Are you using Statamic's form stuff? or your own form? |
Beta Was this translation helpful? Give feedback.
-
I'm using Statamic's form stuff. For reference, here is the field definition from the blueprint:
and here is the antlers code to render the field:
and here is the Request as shown on the error page:
Really straightforward. Nothin' fancy. When rendered, the form tag does include the correct enctype and the field itself seems to be rendering as it should. I don't see anything out the ordinary. Thanks for the assist! |
Beta Was this translation helpful? Give feedback.
-
Let's see the html produced |
Beta Was this translation helpful? Give feedback.
-
Here is the opening form tag:
and here is the file input:
Let me know if this is what you're after. Again, thanks for taking a look at this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Statamic: 4.41.0
PHP: 8.3.13
I have a simple job application form with an Asset field type for uploading a resume. On the front end, this is a simple file input field. Upon submission, I am getting this error:
Symfony \ Component \ HttpFoundation \ File \ Exception \ FileNotFoundException
The file "/private/var/tmp/phpmhvzmE" does not exist
As far as I know, this is all very straightforward stuff, which makes me think I'm doing something really dumb, but for the life of me I can't figure it out.
Any help or guidance would be really appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions