|
| 1 | +--- |
| 2 | +# This is the icon of the page |
| 3 | +icon: iconfont icon-state |
| 4 | +# This control sidebar order |
| 5 | +order: 256 |
| 6 | +# A page can have multiple categories |
| 7 | +category: |
| 8 | + - Guide |
| 9 | +# A page can have multiple tags |
| 10 | +tag: |
| 11 | + - Storage |
| 12 | + - Guide |
| 13 | + - "Native Rroxy" |
| 14 | + - "302" |
| 15 | +# this page is sticky in article list |
| 16 | +sticky: true |
| 17 | +# this page will appear in starred articles |
| 18 | +star: true |
| 19 | +--- |
| 20 | +# Cloudreve V4 / Share |
| 21 | + |
| 22 | +## Parameter Explanation |
| 23 | + |
| 24 | +### Address |
| 25 | + |
| 26 | +The address of the Cloudreve V4 server, such as: `https://www.example.com`. It is better to remove the slash `/` after it. |
| 27 | + |
| 28 | +### Authentication |
| 29 | + |
| 30 | +Cloudreve V4 supports authentication using Token. This means the mounting authentication methods are divided into: |
| 31 | + |
| 32 | +1. `Username` + `Password`: Automatically uses the login interface to obtain Access Token and Refresh Token, there might be issues with CAPTCHA. |
| 33 | +2. `Refresh Token` Only: Automatically uses the refresh interface to renew Access Token and Refresh Token, parameters can be found from browser requests or Local Storage. |
| 34 | +3. `Access Token` Only: Can be temporarily used but will expire and cannot be renewed. |
| 35 | +4. None: Anonymous user, suitable for public sharing. |
| 36 | +5. [Reference](../drivers/common.html#reference): Fill in `ref:/{mount path}` in `Remark`: Reference authentication, tokens, etc., from "Mounted Storage". |
| 37 | + |
| 38 | +Steps to get tokens: |
| 39 | + |
| 40 | +:::::tabs |
| 41 | + |
| 42 | +@tab From Local Storage |
| 43 | + |
| 44 | +:::note |
| 45 | +There may be multiple sessions; please select the one you want to mount. |
| 46 | +::: |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +@tab From Network |
| 52 | + |
| 53 | +:::note |
| 54 | +You may need to log in anew to see this request. |
| 55 | +::: |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +::::: |
| 60 | + |
| 61 | + |
| 62 | +### Root Folder Path |
| 63 | + |
| 64 | +Cloudreve V4 uses a custom URI as the path, which can be obtained from the `?path=` in the web link. The obtained parameters may need to be [URL decoded](https://www.google.com/search?q=URL+decode). |
| 65 | + |
| 66 | +#### Mounting My Files |
| 67 | + |
| 68 | +Default is `cloudreve://my/`, listing user files. |
| 69 | + |
| 70 | +#### Mounting Share |
| 71 | + |
| 72 | +Supports mounting folder-type shares, the path should be filled as: `cloudreve://{ShareID}@share/`. |
| 73 | + |
| 74 | +- ShareID is the parameter after `/s/` in the share link. |
| 75 | + |
| 76 | +- Currently, Cloudreve V4 does not support creating password-protected shares. However, if the data is migrated from V3, the previously created sharing password will be retained. The URI of the share link with the password (`/s/{shareID}/{sharePassword}`) is `cloudreve://{shareID}:{sharePassword}@share`. |
| 77 | + |
| 78 | +### Enable Folder Size |
| 79 | + |
| 80 | +Enable Cloudreve V4 server to calculate the size of each folder. Enabling this feature may cause server errors or slow performance, and it is `disabled` by default. |
| 81 | + |
| 82 | +### Enable Thumbnails |
| 83 | + |
| 84 | +Enable Cloudreve V4 server to generate thumbnails for each file. Enabling this feature may cause server errors or slow performance, and it is `disabled` by default. |
| 85 | + |
| 86 | +### Enable Version Upload |
| 87 | + |
| 88 | +Enable overwrite upload and keep the previous version, which consumes extra space. Disabled by default, delete the existing file before overwriting upload. |
| 89 | + |
| 90 | +### Custom UA |
| 91 | + |
| 92 | +Used to customize the `User-Agent` header information used in requests. Leaving it blank will use Alist default settings. |
| 93 | + |
| 94 | +### Sorting |
| 95 | + |
| 96 | +Supports changing the sorting parameters when requesting lists. |
| 97 | + |
| 98 | +## Upload |
| 99 | + |
| 100 | +The supported storage policies for uploading are as follows: |
| 101 | + |
| 102 | +- Local storage |
| 103 | +- Slave storage |
| 104 | +- OneDrive |
| 105 | +- S3 |
| 106 | + |
| 107 | +Upload storage policies can be set within Cloudreve V4 web interface by entering the corresponding folder (requires the server to be Cloudreve Pro). |
| 108 | + |
| 109 | +If upload permissions are enabled for shares, uploads are supported. It requires the server to check "Enhance anonymous user permissions" for the user group (requires the server to be Cloudreve Pro). |
| 110 | + |
| 111 | +## **The default download method used** |
| 112 | + |
| 113 | +```mermaid |
| 114 | +--- |
| 115 | +title: Which download method is used by default? |
| 116 | +--- |
| 117 | +flowchart TB |
| 118 | + style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff |
| 119 | + style a2 fill:#ff7575,stroke:#333,stroke-width:4px |
| 120 | + subgraph ide1 [ ] |
| 121 | + a1 |
| 122 | + end |
| 123 | + a1[302]:::someclass====|default|a2[user equipment] |
| 124 | + classDef someclass fill:#f96 |
| 125 | + c1[local proxy]-.alternative.->a2[user equipment] |
| 126 | + b1[Download proxy URL]-.alternative.->a2[user equipment] |
| 127 | + click a1 "../drivers/common.html#webdav-policy" |
| 128 | + click b1 "../drivers/common.html#webdav-policy" |
| 129 | + click c1 "../drivers/common.html#webdav-policy" |
| 130 | +``` |
0 commit comments