Content > Files > userFilesCreate
POST:user_files.json
Description
Create user file.
Topic: Files
Arguments
data: [UserFileCreate!]!
Main argument for mutations.
Unique user identifier. See also: Unique Identifiers
Example: "us_EQzGqWoY"
Data Argument Fields
Base64 encoded file or image
Example: "R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
Override default content type of the file
Example: "plain/text"
Valid when: content_type's length doesn't exceed 250 characters
Alt title of the image
Example: "Lovely Sunset"
Valid when: image_alt's length doesn't exceed 250 characters
Filename, will be used to construct a unique file path
Example: "123.txt"
Valid when: name's length doesn't exceed 200 characters
Text if the file is a plain text file
An URL to download file or image from
Example: "http://apple.com/new_bg.gif"
Result
[UserFile!]
Preview (typescript)
Loading module