Documentation > CMS Template API Library > UploadedFile > StringValue


Gets the string value. Only supports xml, csv, and txt files. If StringValue is called on an unsupported file type, such as an image it will return an empty string. The file is assumed to be encoded as UTF-8. If it is not UTF-8 or it uses a different extension that one of the supported, you may call ReadAsText() with the desired encoding instead.



Connect with Crownpeak