Attachments can't be renamed in Messages Extension
| Originator: | falcon.ser | ||
| Number: | rdar://28278392 | Date Originated: | 13-Sep-2016 |
| Status: | Open/Duplicate/28058753 | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 10.0.1 (14A403) |
| Classification: | Messages | Reproducible: | Always |
Area: Messages Summary: Not actual filename nor alternateFilename not applied to attachments after calling MSConversation::insertAttachment(_ URL: URL, withAlternateFilename filename: String?, completionHandler: (@escaping (Error?) -> Swift.Void)? = nil) Steps to Reproduce: 1) Launch messages extension 2) Insert attachment Expected Results: Attached file has specified filename Actual Results: Attached file has randomly generated filename Version: iOS 10.0.1 (14A403) Notes: Please find sample project attached. The only button "Attach sample.txt" creates a new file in NSTemporaryDirectory with "sample.txt" then calls insertAttachment with alternateFilename set to "sampleAlternate.txt". Attached file has a name like "ms-jzerXK.txt". Configuration: iPhone 6s, iPad Pro 13' Attachments: 'MessagesAttachmentNameSample.zip' and 'Screen Shot 2016-09-13 at 3.52.58 PM.png' were successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!