insert the uploaded directory into the front