upload icon indicating copy to clipboard operation
upload copied to clipboard

XAMPP Optional parameter $upload declared before required parameter $contents is implicitly treated as a required parameter

Open Dret42 opened this issue 5 months ago • 6 comments

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

  1. Click to upload an image into a post
  2. An error return and the image is not inserted into post
  3. Go to your media folder and the image is present
  4. Try to delete the image and another error return
  5. 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

Dret42 avatar Sep 15 '24 20:09 Dret42