fixing up options for uploaded files