Multi-selection "Copy to App" from Files App imports only one file

Originator:huapapojt.dev
Number:rdar://36505593 Date Originated:01/14/2018
Status:Open Resolved:-
Product:iOS + SDK Product Version:11.2.2
Classification:Serious Bug Reproducible:Always
 
Area:
UIKit

Summary:
When you select multiple files in Files app and share them via "Copy to App" action, only one file is ever imported and processed.

- Practical examples I can reproduce: Procreate, PDF Expert app. Please see screenshots.
- Code: AirDropSample (https://developer.apple.com/library/content/samplecode/sc2273/Introduction/Intro.html#//apple_ref/doc/uid/DTS40013842-Intro-DontLinkElementID_2)

I am aware that the `Inbox` path might have been changed (https://stackoverflow.com/a/47415226/1452174), but in code, I can see that no additional files are imported at all. No more files in `Documents/Inbox`. No more files in `tmp/` or `tmp/<bundle-ID>-Inbox`. This also happens in my own project.

Pretty sure this is a dupe since it's a pretty serious one for UI. Please let me know if this has been fixed. If not, please let me know if you'd like another sample project in Swift 4.

Steps to Reproduce:
- Have some files ready in Files app (iOS 11).
- Select multiple files in Files, then select action "Copy to App". For PDF Expert, I just pick a few PDFs. For Procreate, I pick a few .procreate files. For AirDropSample, I pick a few .customprofile files.
- The app the files are imported (Procreate / PDF Expert / AirDropSample) will have **exactly one file** imported.

- If you perform multi-files import via AirDrop, multiple files are correctly imported.
- If you perform Drag and Drop for iPad, multiple files are correctly imported. However, on the iPhone this is a problem. You can't import multiple files at once at all.

Expected Results:
"Copy to App" should correctly import multiple files!

Actual Results:
"Copy to App" imports only one file. This happens for many apps including real-world ones like Procreate / PDF Expert.

Version/Build:
iOS 11.2.2 (15C202), Xcode 9.2 (9C40b) for AirDropSample.

Configuration:
Please see screenshot.

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!