Well, it would cause problems because it will try to return an array of images. On the other hand, if you used the code at the bottom of the gallery doc page http://www.advancedcustomfields.com/resources/gallery/ “Create a WP gallery” this returns an array of attachment ID values and you could use those with wp_get_attachment_url(). However, I’ve never tried to add files to a gallery field, have you? Will it allow files that are not images?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users