1. give the upload directory permissions 2.give permission to the file to be read after successful upload