That's not possible. The script of a published app can't be modified. It will have to be duplicated first. After that the owner of the duplicated app can change the script for example by adding a data file through uploading it.
And please don't clutter this site with duplicate discussions: Enable users to upload file to published app