Files uploading - document not saving