You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main concept of the upload feature is that it sends uploaded files to an external source. The database keeps the information about path and folder name where the file was stored.
20
21
@@ -43,15 +44,21 @@ Next, you should decide, where your files will be stored and prepare resource en
43
44
{% tab title="Local Filesystem" %}
44
45
In this example your local server should have established `bucket` folder and it should be accessible by web browser (via `baseUrl` path)
45
46
46
-
```javascript
47
+
<preclass="language-javascript"><codeclass="lang-javascript"><strong>import * as url from 'url'
Copy file name to clipboardExpand all lines: basics/resource.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,8 @@ For other adapters the setup would be basically the same, you just have to pass
61
61
This option requires you to define all resources explicitly. It is also the recommended approach since it allows you to customize every resource. In order to define resources, you must specify `resources` property when setting up your AdminJS instance. Example:
62
62
63
63
```typescript
64
-
importUserfrom'./user.entity'
65
-
importProfilefrom'./profile.entity'
64
+
importUserfrom'./user.entity.js'
65
+
importProfilefrom'./profile.entity.js'
66
66
67
67
// User and Profile are models defined in your ORM/ODM
0 commit comments