Skip to content

Fix/non chrome fallback#368

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/non-chrome-fallback
Mar 21, 2026
Merged

Fix/non chrome fallback#368
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/non-chrome-fallback

Conversation

@avinxshKD
Copy link

This PR prevents crashes on browsers without full File System Access API support (Firefox/Safari) and falls back gracefully with existing user-facing messaging.

What changed:

Wrapped directory picker flow in try/catch and ignore cancel (AbortError).
Added guard for missing webkitRelativePath in directory upload fallback path.
Guarded createWritable() usage in graph save flow and fallback to existing save path when unavailable.
Updated file editor save checks to use feature detection instead of UA sniffing, with graceful fallback toast.

fixes #365

@avinxshKD avinxshKD changed the base branch from main to dev March 20, 2026 15:39
@avinxshKD
Copy link
Author

Hey @pradeeban pls take a look, i think test failure is unrelated to this Pr

@avinxshKD
Copy link
Author

now working on the separate PR for other "bonus problems" such as the case sensitiveness, no file size limits etc as discussed :p

@pradeeban
Copy link
Member

Awesome!

@pradeeban pradeeban merged commit f5531af into ControlCore-Project:dev Mar 21, 2026
1 of 2 checks passed
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.

file browser crashes on Firefox/Safari, the "fallback" is just a toast saying use Chrome

2 participants