Alrighty to anyone using LocalWP, windows OS and PHP version 7/8,
There is an issue where your temp folder is set to C:/Windows/Temp by default.
This folder requires permissions that you usually wouldn’t grant.
The temp folder is essential for us to upload images and use Elementor.
So a simple fix is the following:
1. Open your site folder
2. Navigate to your PHP folder -> **conf** \-> **php**
3. Double-click **php.ini.hbs**
4. Replace **line 5** with this sys\_temp\_dir=”YOURDRIVE:\\YOUR\\PATH\\TO\\SITE\\app\\public\\temp”
\- My path looks like this sys\_temp\_dir=”B:\\WordPress Sites\\Stickurs\\app\\public\\temp”
5. Save the file
6. Go back to the main directory for your site
7. Navigate to your public folder -> **app** \-> **public**
8. Create a new folder called **”temp”**
9. You’re Done! 🙂
Make sure to restart the site to update your site’s temp directory.
[ad_2]
This is not necessary to upload images, works fine for me and I haven’t moved the temp dir.