Can you let me know what you're trying to achieve here ? Going by the name "questionsFile" I'm assuming this is a file containing some new questions you want to add to your game ? If so you might be better off storing these new questions in a custom runtime collection. If you let me know a bit more about your game I can help you find a solution that works best for you.
Thanks,
Liam
R
Rafal Gawel
said
about 7 years ago
Hi Liam,
I am developing quiz like game and i have to upload my questions to database. I think that best way for storing these questions is store one question in one document. I have a lot of questions in a xsl file and i guess i should convert this file to json, then upload as database collection. I don't see where i can upload json as collection, so i am going to write form for this. I think that meta collection is better for me than runtime collection because only i can upload new questions (my players can't).
Regards,
Rafał
Customer Support
said
about 5 years ago
Answer
Sorry Rafal, this functionality is currently not possible from GameSparks dynamics forms.
Rafal Gawel
Hi, i have the following screen code:
<gs-form snippet="upload_questions" target="upload_questions_result">
<gs-row>
<gs-col width="6">
<input type="file" name="questionsFile" value="d"/>
</gs-col>
<gs-col width="3">
<gs-submit>Submit</gs-submit>
</gs-col>
</gs-row>
</gs-form>
How can i access uploaded file content in my snippet? I have already tried Spark.getData().scriptData, but it is not working.
Sorry Rafal, this functionality is currently not possible from GameSparks dynamics forms.
Sean
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Rafal,
Can you let me know what you're trying to achieve here ? Going by the name "questionsFile" I'm assuming this is a file containing some new questions you want to add to your game ? If so you might be better off storing these new questions in a custom runtime collection. If you let me know a bit more about your game I can help you find a solution that works best for you.
Thanks,
Liam
Rafal Gawel
Hi Liam,
I am developing quiz like game and i have to upload my questions to database. I think that best way for storing these questions is store one question in one document. I have a lot of questions in a xsl file and i guess i should convert this file to json, then upload as database collection. I don't see where i can upload json as collection, so i am going to write form for this. I think that meta collection is better for me than runtime collection because only i can upload new questions (my players can't).
Regards,
Rafał
Customer Support
Sorry Rafal, this functionality is currently not possible from GameSparks dynamics forms.
Sean
-
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