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

Reupload asset broken #10440

Closed
alexthekiwi opened this issue Jul 11, 2024 · 0 comments · Fixed by #10441
Closed

Reupload asset broken #10440

alexthekiwi opened this issue Jul 11, 2024 · 0 comments · Fixed by #10441
Labels

Comments

@alexthekiwi
Copy link

Bug description

I tried to re-upload a file using the asset browser, and nothing happened - showing a Javascript console error.

How to reproduce

This occurs from a brand new installation of Statamic created with statamic new, using Statamic version "statamic/cms": "^5.0".

Example repo: https:/alexthekiwi/file-reupload-statamic

To reproduce:

  1. Log into CMS
  2. Upload an asset
  3. Click the "Reupload" button, from either the modal or the assets index view
  4. Select asset
  5. See browser console error, and no file populated in the input (can't save)

Logs

TypeError: Cannot read properties of null (reading 'push')
    at q.uploadComplete (app-bdb8f92f.js:390:251254)
    at invokeWithErrorHandling (app-bdb8f92f.js:5:37633)
    at q.I (app-bdb8f92f.js:5:14221)
    at invokeWithErrorHandling (app-bdb8f92f.js:5:37633)
    at M.$emit (app-bdb8f92f.js:5:28219)
    at q.handleUploadSuccess (app-bdb8f92f.js:192:5563)
    at app-bdb8f92f.js:192:5468

Environment

Environment
Application Name: Statamic
Laravel Version: 11.15.0
PHP Version: 8.2.16
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: file-reupload-statamic.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
Static Caching: Disabled
Version: 5.14.0 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants