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

DOC Update doc for moving files. #61

Conversation

GuySartorelli
Copy link
Member

The docs implied that you could just call $file->publishSingle() to propogate the change to live, but a check in File::updateFilesystem() explicitly blocks that from happening until the reading mode has changed:
https://github.com/silverstripe/silverstripe-assets/blob/4f5f62f22376db67f4af794337563f5c05e92acc/src/File.php#L811-L814

This PR updates the docs to show how to immediately move the file.

@GuySartorelli GuySartorelli changed the base branch from 4.11 to 4.12 March 8, 2023 04:52
@emteknetnz emteknetnz merged commit a88605f into silverstripe:4.12 Mar 13, 2023
@emteknetnz emteknetnz deleted the pulls/4.11/update-move-files-docs branch March 13, 2023 04:11
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.

2 participants