You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(admin): Move external storage encoding to main ext st. ch.
Move external storage specific file name encoding section out of the buried troubleshooting chapter and into the main external storage configuring chapter.
Also very light updates to formatting, grammar, and headings.
Very light misc clarification/clean-up.
Signed-off-by: Josh <[email protected]>
:alt:Checkboxes to allow users to mount external storage services.
148
151
149
-
Adding files to external storages
150
-
---------------------------------
152
+
Adding Files
153
+
------------
151
154
152
155
We recommend configuring the background job **Webcron** or
153
156
**Cron** (see :doc:`../configuration_server/background_jobs_configuration`)
154
157
to enable Nextcloud to automatically detect files added to your external
155
158
storages.
156
159
157
-
Nextcloud may not always be able to find out what has been
158
-
changed remotely (files changed without going through Nextcloud), especially
159
-
when it's very deep in the folder hierarchy of the external storage.
160
+
Nextcloud may not always be able to detect changes made remotely (files changed without going through Nextcloud), especially
161
+
when files are located deep in the folder hierarchy of the external storage.
160
162
161
-
You might need to setup a cron job that runs ``sudo -E -u www-data php occ files:scan --all``
162
-
(or replace ``--all`` with the user name, see also :doc:`../occ_command`)
163
-
to trigger a rescan of the user's files periodically (for example every 15 minutes), which includes
163
+
You might need to set up a cron job that runs ``sudo -E -u www-data php occ files:scan --all``
164
+
(or replace ``--all`` with the username; see also :doc:`../occ_command`)
165
+
to trigger a rescan of the user's files periodically (for example, every 15 minutes), which includes
164
166
the mounted external storage.
167
+
168
+
.. _trouble-file-encoding-ext-storages:
169
+
170
+
Troubleshooting File Name Encoding
171
+
----------------------------------
172
+
173
+
.. TODO: This should be reviewed by a knowledgeable party at a future date to determine if any changes are relevant with the HFS+ to APFS migration in macOS.
174
+
175
+
When using external storage, it can happen that some files with special characters will not
176
+
appear in the file listing, or they will appear but not be accessible.
177
+
178
+
When this happens, please run the :ref:`files scanner<occ_files_scan_label>`, for example::
179
+
180
+
sudo -E -u www-data php occ files:scan --all
181
+
182
+
If the scanner reports an encoding issue on the affected file, please enable Mac encoding
183
+
compatibility in the :ref:`mount options<external_storage_mount_options_label>`
184
+
and then :ref:`rescan the external storage<occ_files_scan_label>`.
185
+
186
+
.. note::
187
+
This mode comes with a performance impact because Nextcloud will always try both encodings when detecting files
188
+
on external storages.
189
+
190
+
Mac computers use the NFD Unicode normalization for file names, which is different from NFC, the one used
191
+
by other operating systems. Mac users might upload files directly to the external storage using NFD-normalized
192
+
file names. When uploading through Nextcloud, file names will always be normalized to the NFC standard for consistency.
193
+
194
+
It is recommended to let Nextcloud use external storages exclusively to avoid such issues.
195
+
196
+
See also the `technical explanation about NFC vs NFD normalizations <https://www.win.tue.nl/~aeb/linux/uc/nfc_vs_nfd.html>`_.
0 commit comments