How to export all link file to csv?

php

#1

Hi,
I have a lot of files and have some problems.

1.How to choose the public mode made default, when uploading?
2.How to export all existing files to .csv?

Thank you very much for your answers !