improved file upload / media url attachment