question

Vsevolod Metelskyi avatar image
Vsevolod Metelskyi asked

File Management tab and CloudScript

This question might be a little bit weird, but still, is it possible to get the data from the JSON-files on File Management tab via Cloud Script? My JSON-files have like 100 kB in total and I can not store them as a key-value pair in the Title Content due to the limitation, but it seems that I can upload them to the File Management Tab and the fee is not so high.

So what I want is to:

1. Upload JSON-files to the File Management tab of my project.(Done)

2. Find a way to get their content via Cloud Script.

I feel like those files are for client download only but I might and would like to be wrong. Please let me know if that is possible.

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
jital avatar image
jital answered

Greetings,

You can download files from the CDN by using the GetContentDownloadUrl API call in your Cloudscript. This is possible because Cloudscript has access to the Server API calls.

There is also additional CDN documentation if you need examples.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.