FWIW [chrome opted for 2](https://chromium.googlesource.com/chromium/src/+/4fa830d8af6b2fb293219edeb39eebccfd322305), IIUC. So if the user clicks explicitly on a single file, it will always be uploaded, but for folders symlinks are always ignored, be they pointing to folders or files. I assume (but did not check) that this implies to follow the symlink if the picked folder itself is one. I can understand that as a compromise that respects the explicit choice of the user but avoids implicit surprises. I read 3 as: Like 2 but only if the symlink points somewhere outside the selected folder. In terms of uploaded data this would actually double the payload for symlinks that point inside our folder, I fear, so probably not really wanted. 4 is a bit like the default behavior of tar on a folder that contains symlinks (though gzip follows them by default, I think). Hard to say how surprising this would be to a normal linux user - at least it would give the chance to see what happened a posteriori in the uploaded data and not just silently omit files. In terms of uploaded file content this would be equivalent to 2, we just add the information of there being symlinks.
Bug 1813299 Comment 17 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
FWIW [chrome opted for 2](https://chromium.googlesource.com/chromium/src/+/4fa830d8af6b2fb293219edeb39eebccfd322305), IIUC. So if the user clicks explicitly on a single file, it will always be uploaded, but for folders symlinks are always ignored, be they pointing to folders or files. I assume (but did not check) that this implies to follow the symlink if the picked folder itself is one. I can understand that as a compromise that respects the explicit choice of the user but avoids implicit surprises. I read 3 as: Like 2 but only if the symlink points somewhere outside the selected folder. In terms of uploaded data this would actually double the payload for symlinks that point inside our folder, I fear, so probably not really wanted. 4 is a bit like the default behavior of tar on a folder that contains symlinks (though zip follows them by default, I think). Hard to say how surprising this would be to a normal linux user - at least it would give the chance to see what happened a posteriori in the uploaded data and not just silently omit files. In terms of uploaded file content this would be equivalent to 2, we just add the information of there being symlinks.