Here's how to replicate the specific bug caused by this problem:
0. Clean install of Mahara
1. Log in as admin
2. Upload some files into your Content -> Files area. (Don't use the images in any pages)
3. Go to Portfolio -> Export
4. Select the "All my data" option, and export.
5. Unzip the generated Leap2a file, and look for your uploaded files.
Expected result: You should see a copy of your uploaded files, in the Leap2a's "files" directory
Actual result: The Leap2a archive will not contain a copy of your uploaded files.
Here's how to replicate the specific bug caused by this problem:
0. Clean install of Mahara
1. Log in as admin
2. Upload some files into your Content -> Files area. (Don't use the images in any pages)
3. Go to Portfolio -> Export
4. Select the "All my data" option, and export.
5. Unzip the generated Leap2a file, and look for your uploaded files.
Expected result: You should see a copy of your uploaded files, in the Leap2a's "files" directory
Actual result: The Leap2a archive will not contain a copy of your uploaded files.