Unable to create temporary file when uploading a file in a POST route #53198
Unanswered
koe01sense
asked this question in
Q&A
Replies: 1 comment 4 replies
-
is your file upload enabled and also the file limit is enough in your |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How do I fix a warning wherein when I tried to upload a file, PHP or Laravel says
Warning: File upload error - unable to create a temporary file in Unknown on line 0
?This is the configuration currently set on my php.ini
running the command above returns my temp directory
and creating tmpfile should return a boolean flag if the temp directory is not writeable but the result is opposite.
Here's the result of hitting the endpoint through postman.

As for the controller method code, there's no particular usage yet for the uploaded file due to this warning
Beta Was this translation helpful? Give feedback.
All reactions