upload
upload copied to clipboard
XAMPP Optional parameter $upload declared before required parameter $contents is implicitly treated as a required parameter
Bug Report
Current Behavior When I try to upload an image I get an error and the image is not inserted inline BUT it is loaded into my image folder. Likewise, if I try to delete them from my media folder I receive an error but then the image is deleted (after refresh the page).
Steps to Reproduce
- Click to upload an image into a post
- An error return and the image is not inserted into post
- Go to your media folder and the image is present
- Try to delete the image and another error return
- Refresh the page and the image is deleted
Expected Behavior The image are correctly inserted and deleted without error messages.
Environment
XAMPP
Flarum 1.8.5 PHP 8.2.4 MySQL 10.4.28-MariaDB Driver Code: sync Driver Sessione: file
Browser
Chrome and Firefox