fixed gcc options
first running version of file upload