#CSV Attachment - iOS

1 messages · Page 1 of 1 (latest)

swift belfry
#

I am using the ShareSheet with AddAttachment(). The issue I am running into is the “filename” string never holds. It ends up being “Attachment1” when the share sheet exports the file. The mimeType I am using is “text/csv”. Once I export and add “.csv” to the “Attachment1” file, it appears as a CSV with the data I passed in AddAttachment().

Any thoughts? @charred wyvern

charred wyvern
swift belfry
#

No matter what I set in AddAttachment(), the name is “Attachment1”

charred wyvern
#

Ok, got it. Thanks for clarifying!
V2 doesn't have option to set the name for the filename but this is addressed in v3 where we offer multiple media content to be shared as well as retrieved with custom options like target folder and filename

swift belfry
#

Or is there any workaround to change the filename currently? It makes the sharesheet attachment unusable in its current state.

charred wyvern
#

Please let me check if its a quick fix.

charred wyvern
#

@swift belfry I checked it and noticed we directly add the raw data instead of specifying any filename.
I made some changes but not satisfied with it. But, it should work for you now. Adding to the log of v3.