statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.03k stars 530 forks source link

Assets not directly uploadable via assets field (without dynamic folder feature enabled) #10856

Closed marcorieser closed 1 month ago

marcorieser commented 1 month ago

Bug description

Happens since v5.27.0 (v5.26.0 works).

When there is an assets field (without special configuration) and I try to upload an asset directly inside an entry via drag/drop or by clicking the upload button, the following error shows.

Bildschirmfoto 2024-09-28 um 10 51 44 Bildschirmfoto 2024-09-28 um 10 51 53 Bildschirmfoto 2024-09-28 um 13 32 29

However, uploading assets via the assets area and linking them in an entry is still possible. Also, the issue does not occur when I activate the new dynamic folder feature.

How to reproduce

Clone the repo:

Or:

Logs

None

Environment

Environment
Application Name: Statamic
Laravel Version: 11.25.0
PHP Version: 8.3.12
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: statamic-asset-upload-bug.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.27.0 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

nopticon commented 1 month ago

I can confirm this is happening to me as well.

darinlarimore commented 1 month ago

This is also happening to me, using Statamic v5.27.0

andrebreia commented 1 month ago

Also happening to me on v5.27.0.

jasonvarga commented 1 month ago

On it. 👍