Cant upload plugin

Im trying to upload a plugin on wordpress, but i keep encountering the error

" 1. Warning: File upload error - unable to create a temporary file in Unknown on line 0 Missing a temporary folder."

I have seen several youtube videos where they paste in the code
“define(‘WP_TEMP_DIR’, dirname(FILE) . “/wp-content/temp/”);”
in wp-config.php file, but it doesnt help, neither does creating the folder “temp” in that directory mentioned in the code.

how can i fix this issue?

Hey @zafi570

We would be happy to assist with your Local troubleshooting! Could you provide some more details to help us take a further look?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.