Skip to content

Commit 72808a4

Browse files
authored
chore: add file upload limits and update Sandbox conversion details (#270)
* chore: add file upload limits * chore: add file upload link to Sandboxes menu * chore: update Sandbox conversion instructions
1 parent 82f5de0 commit 72808a4

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed
Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,40 @@
11
---
22
title: Upload static files
3-
description: Learn how you can upload static files to your CodeSandbox repositories.
3+
description: Learn how you can upload static files to your CodeSandbox Sandboxes and Devboxes.
44
---
55

6+
import { Callout } from 'nextra-theme-docs'
7+
8+
---
69

710
# Upload static files
811

9-
You can upload static files to your projects in CodeSandbox. To use this feature, drag the desired files from your computer and drop them into the file explorer on the sidebar. The files will then be automatically uploaded.
12+
You can upload static files (images, documents, videos, etc.) to your projects in CodeSandbox. To use this feature, drag the desired files from your computer and drop them into the file explorer on the sidebar. The files will then be automatically uploaded.
1013

1114
Alternatively, you can use the icons shown at the right of the _WORKSPACE_ heading (top of the file explorer), right-click the file explorer, or press `$mod+alt+F` to open the file input.
1215

1316
![Sidebar upload](../images/file-upload.jpg)
1417

15-
CodeSandbox allows you to upload several different file types (images, documents, videos, etc.) with up to 7MB each in our Free plans and 30MB each in our [Pro plans](https://codesandbox.io/pricing).
18+
## Upload limits
19+
20+
CodeSandbox file upload limits vary depending on the runtime and plan.
21+
22+
For Sandboxes, the limits are:
23+
24+
- 50 MB total storage per user with a Free account.
25+
- 1000 MB total storage per user with a Pro account.
26+
27+
<Callout emoji="⚠️">
28+
The limits for Sandboxes are not specific to each Sandbox; they are shared across all Sandboxes created by the same user.
29+
</Callout>
30+
31+
You can check your current Sandbox storage usage from your [Dashboard](https://codesandbox.io/dashboard/) by clicking your user avatar at the top right and then "Storage".
32+
33+
For Devboxes and repositories, the limits are:
34+
35+
- 20 GB total storage per Devbox or repository branch for workspaces on a Free plan.
36+
- 50 GB total storage per Devbox or repository branch for workspaces on a Pro plan.
37+
38+
You can check your Devbox storage usage by clicking the CodeSandbox icon at the top left of the editor and then "Virtual machine". This will open a new DevTool displaying the current VM usage, including storage.
39+
40+
![Sidebar upload](../images/change-vm-editor.jpg)
53 KB
Loading

packages/projects-docs/pages/learn/sandboxes/_meta.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
"title": "Synced Templates",
1010
"href": "/learn/devboxes/synced-templates"
1111
},
12+
"upload": {
13+
"title": "Upload static files",
14+
"href": "/learn/devboxes/upload"
15+
},
1216
"faq": "FAQ"
1317
}

packages/projects-docs/pages/tutorial/convert-browser-sandbox-cloud.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ Besides the benefits presented above, there are some other noteworthy features t
3535

3636
## Convert a Sandbox to a Devbox
3737

38-
You can convert most Sandboxes into a Devbox by clicking the "Convert to Devbox" button at the top right of the Sandbox editor.
38+
You can convert most Sandboxes into a Devbox by clicking the chevron next to the "Fork" button at the top right of the Sandbox editor and then selecting "Fork as Sandbox".
3939

40-
![Convert Sandbox to Devbox](https://assets.codesandbox.io/images/convert-sandbox-to-devbox.jpg)
40+
![Convert Sandbox to Devbox](https://assets.codesandbox.io/images/convert-sandbox-to-devbox-new.jpg)

0 commit comments

Comments
 (0)