File tree Expand file tree Collapse file tree 4 files changed +13070
-32
lines changed
Expand file tree Collapse file tree 4 files changed +13070
-32
lines changed Original file line number Diff line number Diff line change 2020 - name : " Install node & npm"
2121 uses : actions/setup-node@v1
2222 with :
23- node-version : 12 .x
23+ node-version : 18 .x
2424
2525 - name : " Install repository dependencies"
2626 run : npm ci
4040 AWS_EC2_METADATA_DISABLED : true
4141 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Automatically generated by GitHub / is not in our secrets.
4242 NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
43+ NODE_OPTIONS : --openssl-legacy-provider
4344 run : |
4445 npm set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
4546 npm run publish:executeIfReleaseCommit
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ yarn add react-uploader
9393Or via a ` <script> ` tag:
9494
9595``` html
96- <script src =" https://js.upload.io/react-uploader/v1 " ></script >
96+ <script src =" https://js.upload.io/react-uploader/v2 " ></script >
9797```
9898
9999# Usage
@@ -171,6 +171,7 @@ The callbacks receive a `Array<UploaderResult>`:
171171``` javascript
172172{
173173 fileUrl: " https://upcdn.io/FW25..." , // URL to use when serving this file.
174+ filePath: " /uploads/example.jpg" , // File path (we recommend saving this to your database).
174175
175176 editedFile: undefined , // Edited file (for image crops). Same structure as below.
176177
You can’t perform that action at this time.
0 commit comments