Skip to content

Fix bulk upload when BULK_UPLOAD_TEMP_DISK is a glued .env value - #3716

Merged
bernardhanna merged 1 commit into
masterfrom
fix/bulk-upload-glued-env-disk
Nov 30, 2026
Merged

bernardhanna merged 1 commit into
masterfrom
fix/bulk-upload-glued-env-disk

Conversation

@bernardhanna

Copy link
Copy Markdown
Collaborator

Summary

  • Live .env has BULK_UPLOAD_TEMP_DISK=localFACEBOOK_CLIENT_ID=… (missing newline), so Storage looks for a non-existent disk.
  • BulkEventUploadCache::tempDisk() now rejects unknown / glued disk names (= or not in filesystems.disks) and falls back to the cloud disk (s3).
  • Unit coverage for the glued-env case.

Test plan

  • php artisan test --filter=BulkEventUploadCacheTest
  • On live after deploy: upload docs/resources/minecraft.xlsx at /admin/bulk-upload
  • Still set Forge env to BULK_UPLOAD_TEMP_DISK=s3 on its own line so config is clean

Made with Cursor

A missing newline in Forge .env turned the disk name into localFACEBOOK_CLIENT_ID=…; fall back to the cloud disk when the configured name is invalid.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bernardhanna
bernardhanna merged commit 5e3beca into master Nov 30, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant