Added proper path and filename for destinations for file uploads.
Added the creation of empty files before catting in the uploaded ones.