SharingPanel - file name?

I see from the SharingPanel example that i can share a picture or some text.
If the text represents a CSV file, is there a way to name it , or must the user decide on the name?

Alternately, is it better to save direct to iCloud/Documents/ email such a file if I need a named file?