mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
ISsue-#989: Asset hosting on OneDrive
This commit is contained in:
parent
c88e98e259
commit
1eb553c881
@ -101,3 +101,51 @@ Go to the Azure portal: https://portal.azure.com/#home and select `Storage accou
|
|||||||
Now, copy and paste the link in the Publish page in the Ocean Marketplace.
|
Now, copy and paste the link in the Publish page in the Ocean Marketplace.
|
||||||
|
|
||||||
![Publish the file as an asset](/images/marketplace/publish/azure-10.png)
|
![Publish the file as an asset](/images/marketplace/publish/azure-10.png)
|
||||||
|
|
||||||
|
### OneDrive
|
||||||
|
|
||||||
|
Create an account on [Microsoft](https://www.microsoft.com/en-us/microsoft-365/onedrive/online-cloud-storage).
|
||||||
|
|
||||||
|
#### Step 1 - Upload a file
|
||||||
|
|
||||||
|
Go to [OneDrive](https://onedrive.live.com/) and upload the file to be published.
|
||||||
|
|
||||||
|
![Upload a file](/images/marketplace/publish/one-drive-1.png)
|
||||||
|
|
||||||
|
#### Step 2 - Get link
|
||||||
|
|
||||||
|
After the file is uploaded, right click on the file and click `Embed`, and copy the link.
|
||||||
|
|
||||||
|
![Get an embeddable link](/images/marketplace/publish/one-drive-2.png)
|
||||||
|
|
||||||
|
Now copy the highlighted content as shown in below image:
|
||||||
|
|
||||||
|
![Copy the iframe](/images/marketplace/publish/one-drive-3.png)
|
||||||
|
|
||||||
|
The copied content will be of the format as below:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<iframe src="https://onedrive.live.com/embed?cid=<CID>&
|
||||||
|
resid=<RES_ID>%<NUMBER>&
|
||||||
|
authkey=<AUTH_KEY>"
|
||||||
|
width="98" height="120" frameborder="0" scrolling="no">
|
||||||
|
</iframe>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Step 3 - Generate downloadable link
|
||||||
|
|
||||||
|
Copy the content from `src` field from the `iframe`. The link will the in the format as below:
|
||||||
|
`https://onedrive.live.com/embed?cid=<CID>&resid=<RES_ID>%<NUMBER>&authkey=<AUTH_KEY>`
|
||||||
|
|
||||||
|
Replace the `https://onedrive.live.com/embed` with `https://onedrive.live.com/download` from the above URL.
|
||||||
|
|
||||||
|
The downloadable file URL will be of the format as below:
|
||||||
|
`https://onedrive.live.com/download?cid=<CID>&resid=<RES_ID>%<NUMBER>&authkey=<AUTH_KEY>`
|
||||||
|
|
||||||
|
Enter the the URL in the browser and verify if the file is downloaded correctly.
|
||||||
|
|
||||||
|
#### Step 4 - Publish the asset using the generated link
|
||||||
|
|
||||||
|
Now, copy and paste the link in the Publish page in the Ocean Marketplace.
|
||||||
|
|
||||||
|
![Publish the file as an asset](/images/marketplace/publish/one-drive-4.png)
|
||||||
|
BIN
content/tutorials/images/marketplace/publish/one-drive-1.png
Normal file
BIN
content/tutorials/images/marketplace/publish/one-drive-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
content/tutorials/images/marketplace/publish/one-drive-2.png
Normal file
BIN
content/tutorials/images/marketplace/publish/one-drive-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
content/tutorials/images/marketplace/publish/one-drive-3.png
Normal file
BIN
content/tutorials/images/marketplace/publish/one-drive-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
BIN
content/tutorials/images/marketplace/publish/one-drive-4.png
Normal file
BIN
content/tutorials/images/marketplace/publish/one-drive-4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
Loading…
Reference in New Issue
Block a user