Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcorieser opened this issue Sep 28, 2024 · 0 comments
Labels

Comments

@marcorieser
Copy link
Contributor

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:

  • Install a new site
  • Add an asset field to the page blueprint (no need to configure anything)
  • Create a new page entry
  • Try to upload an asset into the asset field

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

@marcorieser marcorieser changed the title Assets not directly uploadable via assets field (without dynamic folder feature enabled) v5.27.0: Assets not directly uploadable via assets field (without dynamic folder feature enabled) Sep 28, 2024
@duncanmcclean duncanmcclean changed the title v5.27.0: Assets not directly uploadable via assets field (without dynamic folder feature enabled) Assets not directly uploadable via assets field (without dynamic folder feature enabled) Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants