Fixed file download/uploading for good, don't mess with it please