Fixed upload from file