Hi.
I uploaded a text file with hello.txt. which contains "hello" and i want to display like this.
Spark.setScriptData("name", filedata)
Hi Rajababu,
If you upload your file as Jon you can get it with SparkFiles uploadedJson method. Example below.
//contents of test json file { "test":"value", "test2":"value2" } //In Cloud Code var reader = Spark.getFiles().uploadedJson("c462bdfe7cd0481ab1dd391f2610494a"); Spark.setScriptData("result", reader)
This should return the data from the json file in scriptData. What exactly are you trying to do here ?
Thanks,
Liam
Rajababu Lukka
Hi.
I uploaded a text file with hello.txt. which contains "hello" and i want to display like this.
Spark.setScriptData("name", filedata)
Hi Rajababu,
If you upload your file as Jon you can get it with SparkFiles uploadedJson method. Example below.
This should return the data from the json file in scriptData. What exactly are you trying to do here ?
Thanks,
Liam
Customer Support
Hi Rajababu,
If you upload your file as Jon you can get it with SparkFiles uploadedJson method. Example below.
This should return the data from the json file in scriptData. What exactly are you trying to do here ?
Thanks,
Liam
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics