| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Load balancing this to a storage owner
(I'll stamp if it's needed)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
!file->get_native_file()->base_subdirs.empty()) {Please add a test case to verify this change in
third_party/blink/renderer/core/html/forms/file_input_type_test.cc.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
Please add a test case to verify this change in
third_party/blink/renderer/core/html/forms/file_input_type_test.cc.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
#if BUILDFLAG(IS_ANDROID)
// Android content-URIs do not use tree paths with separators like posix
// so we build relative path using base_subdirs.Please update comments.
base::FilePath("content://authority/id-base"));Sorry, I don't follow perfectly, but even in the case where /SAF/authority/tree/id-123 is passed, is base_dir still provided as a content:// URL?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
#if BUILDFLAG(IS_ANDROID)
// Android content-URIs do not use tree paths with separators like posix
// so we build relative path using base_subdirs.Keigo OkaPlease update comments.
Done
Sorry, I don't follow perfectly, but even in the case where /SAF/authority/tree/id-123 is passed, is base_dir still provided as a content:// URL?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
std::string base_dir = virtual_document_pathnit: `const std::string_view`
String path = virtual_document_path ? "/SAF/authority/tree/id-base/123"nit: `const String`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
std::string base_dir = virtual_document_pathKeigo Okanit: `const std::string_view`
Done
String path = virtual_document_path ? "/SAF/authority/tree/id-base/123"Keigo Okanit: `const String`
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fix File.webkitRelativePath for virtual paths on Android
When directory upload is used on Android (in desktop mode), the
base directory path might be a virtual path (i.e. starting with /SAF/)
instead of a raw content URI. In this case, FileInputType was failing
to use the provided base_subdirs to construct the relative path, falling
back to string substring manipulation which is incorrect for virtual paths
(as the file path is still a content URI).
This CL allows using base_subdirs if it is populated, regardless of
whether the base directory is a content URI or not. This ensures
webkitRelativePath is correctly constructed using the ancestors list
provided by the browser process.
Fixed: 472236838
Test: Open drive.google.com, upload a folder, confirm a folder with the
folder name is created.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |