Fix file upload timeout and UX issues

- Increase Dio receiveTimeout from 10s to 60s to allow file uploads and org creation
  to complete (Nextcloud user provisioning takes 5-7s)
- Hide 'Empty Folder' text and back button in root directory (main folder)
- Back button and empty message now only show in actual subdirectories
This commit is contained in:
Leon Bösche
2026-01-11 01:19:00 +01:00
parent acb9b5f71c
commit ed22c5eda4
2 changed files with 32 additions and 26 deletions

View File

@@ -798,6 +798,10 @@ class _FileExplorerState extends State<FileExplorer> {
return const SizedBox.shrink(); return const SizedBox.shrink();
}, },
), ),
// Only show back button and "Empty Folder" text if not at root
if (state.currentPath != '/')
Column(
children: [
const SizedBox(height: 16), const SizedBox(height: 16),
Row( Row(
children: [ children: [
@@ -826,6 +830,8 @@ class _FileExplorerState extends State<FileExplorer> {
), ),
], ],
), ),
],
),
); );
} }

View File

@@ -13,7 +13,7 @@ class ApiClient {
BaseOptions( BaseOptions(
baseUrl: baseUrl, baseUrl: baseUrl,
connectTimeout: const Duration(seconds: 10), connectTimeout: const Duration(seconds: 10),
receiveTimeout: const Duration(seconds: 10), receiveTimeout: const Duration(seconds: 60), // Increased for file uploads and org operations
), ),
); );