Skip to content

Support configurable file uploads disk#133

Draft
duncanmcclean wants to merge 5 commits into
2.xfrom
file-uploads-filesystem
Draft

Support configurable file uploads disk#133
duncanmcclean wants to merge 5 commits into
2.xfrom
file-uploads-filesystem

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

This pull request updates the importer to support the configurable file uploads disk introduced in statamic/cms#14733.

In multi-server environments where a file might be uploaded on one server but processed on another, the CMS now allows configuring a shared filesystem for temporary file uploads. This PR ensures the importer reads uploaded files from the configured disk rather than hardcoding to the local disk.

Changes

Configurable uploads disk

The ImportController now reads the uploads disk and path from statamic.system.file_uploads config. Files are still moved to the local disk for import processing since SimpleExcelReader and XMLReader require filesystem paths.

Relative path storage

Import files are now stored with relative paths (eg. statamic/imports/posts/import.csv) instead of absolute paths. This makes imports portable and works correctly with Laravel's Storage API.


Related: statamic/cms#14733

@duncanmcclean
Copy link
Copy Markdown
Member Author

Converting to a draft until the core PR is merged.

@duncanmcclean duncanmcclean marked this pull request as draft May 27, 2026 09:19
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