Skip to content

Fix bulk upload: store temp files on S3 - #3675

Merged
bernardhanna merged 1 commit into
masterfrom
fix/bulk-upload-s3-temp
Oct 9, 2026
Merged

bernardhanna merged 1 commit into
masterfrom
fix/bulk-upload-s3-temp

Conversation

@bernardhanna

Copy link
Copy Markdown
Collaborator

Summary

  • Default BULK_UPLOAD_TEMP_DISK to Amazon S3 so validate and import share the same temp file across web nodes and workers.
  • Store uploads privately under temp/bulk-events/ and log when the file is missing at import time.
  • Explicitly define local / public disks in config/filesystems.php.

Fixes admin bulk upload failing after Import with "Uploaded file no longer available."

Test plan

  • On live/dev Forge: set BULK_UPLOAD_TEMP_DISK=s3, clear config cache, deploy
  • /admin/bulk-upload: upload spreadsheet → preview → Import succeeds
  • Confirm temp objects appear under temp/bulk-events/ on the AWS bucket and are removed after import
  • Local without AWS: BULK_UPLOAD_TEMP_DISK=local still works on a single machine

Made with Cursor

Local disk left the validated file on one web node; Import on another failed with "Uploaded file no longer available".

Co-authored-by: Cursor <cursoragent@cursor.com>
@bernardhanna
bernardhanna merged commit 974a586 into master Oct 9, 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