New code for upload trailers and files