+
@@ -213,11 +209,10 @@
single
href="https://appwrite.io/docs/storage#createFile"
target="file"
- on:click={() => (showCreate = true)} />
+ on:click={() => wizard.start(CreateWizard)} />
{/if}
-
{#if selectedFile}
{/if}
diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/[[page]]/+page.ts b/src/routes/console/project-[project]/storage/bucket-[bucket]/+page.ts
similarity index 100%
rename from src/routes/console/project-[project]/storage/bucket-[bucket]/[[page]]/+page.ts
rename to src/routes/console/project-[project]/storage/bucket-[bucket]/+page.ts
diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create/create.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/create.svelte
new file mode 100644
index 000000000..2fb30235c
--- /dev/null
+++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/create.svelte
@@ -0,0 +1,60 @@
+
+
+
diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create/step1.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/step1.svelte
new file mode 100644
index 000000000..9dd49dc1e
--- /dev/null
+++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/step1.svelte
@@ -0,0 +1,44 @@
+
+
+
+ Upload a File
+ Upload a file to add it to your bucket.
+
+
+
+
+
+ {#if !showCustomId}
+
+
(showCustomId = !showCustomId)}>
+
+ File ID
+
+
+
+ {:else}
+
+
+
+ {/if}
+
+
+
+
diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create/step2.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/step2.svelte
new file mode 100644
index 000000000..8ea672ecf
--- /dev/null
+++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/step2.svelte
@@ -0,0 +1,43 @@
+
+
+
+ Update Permissions
+ Choose who can get access to your buckets and files. For more information, check out the
+ Permissions Guide in our documentation.
+
+
+ Choose who can access your buckets and files. For more information, check out the
+
+ Permissions Guide
+ .
+
+ {#if $bucket.fileSecurity}
+
+
+ File security enabled
+ Users will be able to access this file if they have been granted
+ either File or Bucket permissions.
+
+
+
+ {:else}
+
+ File security disabled
+ If you want to assign file permissions, navigate to Bucket settings and enable file security.
+ Otherwise, only Bucket permissions will be used.
+
+ {/if}
+
diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create/store.ts b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/store.ts
new file mode 100644
index 000000000..6a6eb9248
--- /dev/null
+++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/create/store.ts
@@ -0,0 +1,24 @@
+import { writable } from 'svelte/store';
+
+type CreateFile = {
+ files: FileList | null;
+ id: string | null;
+ permissions: string[];
+};
+
+const initialState: CreateFile = {
+ files: null,
+ id: null,
+ permissions: []
+};
+
+export const createFile = (function initialize() {
+ const store = writable
({ ...initialState });
+
+ return {
+ ...store,
+ reset() {
+ store.set({ ...initialState });
+ }
+ };
+})();