Thanks for the reply,
For me it seems to open up a directory browser which mean going to /wordpress/wp-content/uploads then trying to find the file. My users wont be able to manage this. Is there a way to invoke the WordPress media library, like when you click the ‘add media’ button?